changeset 1536:992526a710e2 libavcodec

fix "first frame is no keyframe" bug
author michael
date Wed, 15 Oct 2003 15:37:25 +0000
parents bcb30ec7e86f
children 6df940415116
files h263dec.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h263dec.c	Wed Oct 15 03:20:40 2003 +0000
+++ b/h263dec.c	Wed Oct 15 15:37:25 2003 +0000
@@ -609,7 +609,10 @@
     if (   s->width != avctx->width || s->height != avctx->height 
         || ABS(new_aspect - avctx->aspect_ratio) > 0.001) {
         /* H.263 could change picture size any time */
+        ParseContext pc= s->parse_context; //FIXME move these demuxng hack to avformat
+        s->parse_context.buffer=0;
         MPV_common_end(s);
+        s->parse_context= pc;
     }
     if (!s->context_initialized) {
         avctx->width = s->width;