1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

fix "first frame is no keyframe" bug

Originally committed as revision 2388 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2003-10-15 15:37:25 +00:00
parent 4b68410579
commit bcc7125e1d

View File

@ -609,7 +609,10 @@ retry:
if ( s->width != avctx->width || s->height != avctx->height if ( s->width != avctx->width || s->height != avctx->height
|| ABS(new_aspect - avctx->aspect_ratio) > 0.001) { || ABS(new_aspect - avctx->aspect_ratio) > 0.001) {
/* H.263 could change picture size any time */ /* 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); MPV_common_end(s);
s->parse_context= pc;
} }
if (!s->context_initialized) { if (!s->context_initialized) {
avctx->width = s->width; avctx->width = s->width;