summaryrefslogtreecommitdiff
path: root/libavcodec/mpeg12.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-05-14 15:34:49 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-05-14 15:34:49 +0000
commit89ba9eede999bbf2a02d2775272c0e801c2ee6da (patch)
tree7e548910b3dc69e536e3f9d146d515ba7a67fd84 /libavcodec/mpeg12.c
parent6ab87211987f44808f2c7acffcefb1a3b9c2c7c6 (diff)
preserve parse context
Originally committed as revision 4241 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r--libavcodec/mpeg12.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index f84a75afcd..38846b860d 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))