Mercurial > libavcodec.hg
comparison h263dec.c @ 1536:992526a710e2 libavcodec
fix "first frame is no keyframe" bug
author | michael |
---|---|
date | Wed, 15 Oct 2003 15:37:25 +0000 |
parents | 39efe24058ad |
children | 576861d6343a |
comparison
equal
deleted
inserted
replaced
1535:bcb30ec7e86f | 1536:992526a710e2 |
---|---|
607 new_aspect=0; | 607 new_aspect=0; |
608 | 608 |
609 if ( s->width != avctx->width || s->height != avctx->height | 609 if ( s->width != avctx->width || s->height != avctx->height |
610 || ABS(new_aspect - avctx->aspect_ratio) > 0.001) { | 610 || ABS(new_aspect - avctx->aspect_ratio) > 0.001) { |
611 /* H.263 could change picture size any time */ | 611 /* H.263 could change picture size any time */ |
612 ParseContext pc= s->parse_context; //FIXME move these demuxng hack to avformat | |
613 s->parse_context.buffer=0; | |
612 MPV_common_end(s); | 614 MPV_common_end(s); |
615 s->parse_context= pc; | |
613 } | 616 } |
614 if (!s->context_initialized) { | 617 if (!s->context_initialized) { |
615 avctx->width = s->width; | 618 avctx->width = s->width; |
616 avctx->height = s->height; | 619 avctx->height = s->height; |
617 avctx->aspect_ratio= new_aspect; | 620 avctx->aspect_ratio= new_aspect; |