From 8be096e0f789bfc4b089da753dc68672bb1a1f3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Wed, 29 Sep 2010 10:07:14 +0000 Subject: [PATCH] Fix codec initialization. The mpeg4 and h263 codecs were split, and there is also ituh263enc.c, of which I am unsure how it fits into the picture. However the mpeg4 encoder is using a "RL" table of the h263 encoder, and it appears it was forgotten to make sure it's initialized when splitting these files. Should be upstreamed. Fixes a crash when trying to use the MPEG4 encoder. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38847 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/media/plugins/ffmpeg/libavcodec/mpeg4videoenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/add-ons/media/plugins/ffmpeg/libavcodec/mpeg4videoenc.c b/src/add-ons/media/plugins/ffmpeg/libavcodec/mpeg4videoenc.c index 79190f0a6f..410cf850f4 100644 --- a/src/add-ons/media/plugins/ffmpeg/libavcodec/mpeg4videoenc.c +++ b/src/add-ons/media/plugins/ffmpeg/libavcodec/mpeg4videoenc.c @@ -1253,6 +1253,7 @@ static av_cold int encode_init(AVCodecContext *avctx) init_uni_dc_tab(); init_rl(&ff_mpeg4_rl_intra, ff_mpeg4_static_rl_table_store[0]); + init_rl(&ff_h263_rl_inter, ff_h263_static_rl_table_store[0]); init_uni_mpeg4_rl_tab(&ff_mpeg4_rl_intra, uni_mpeg4_intra_rl_bits, uni_mpeg4_intra_rl_len); init_uni_mpeg4_rl_tab(&ff_h263_rl_inter, uni_mpeg4_inter_rl_bits, uni_mpeg4_inter_rl_len);