[SCM] libav/experimental: preserve parse context
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 15:44:00 UTC 2013
The following commit has been merged in the experimental branch:
commit 89ba9eede999bbf2a02d2775272c0e801c2ee6da
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Sat May 14 15:34:49 2005 +0000
preserve parse context
Originally committed as revision 4241 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index f84a75a..38846b8 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -2083,7 +2083,10 @@ static int mpeg_decode_postinit(AVCodecContext *avctx){
{
if (s1->mpeg_enc_ctx_allocated) {
+ ParseContext pc= s->parse_context;
+ s->parse_context.buffer=0;
MPV_common_end(s);
+ s->parse_context= pc;
}
if( (s->width == 0 )||(s->height == 0))
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list