Commit 9eaa4690 authored by Juanjo's avatar Juanjo

- Bug fixed on H.263 decoder initialization.

Originally committed as revision 220 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 21810797
......@@ -115,11 +115,16 @@ static int h263_decode_frame(AVCodecContext *avctx,
ret = h263_decode_picture_header(s);
/* After H263 header decode we have the height, width, */
/* and other parameters. So then we could init the picture */
if (s->width != avctx->width || s->height != avctx->height) {
avctx->width = s->width;
avctx->height = s->height;
/* FIXME: By the way H263 decoder is evolving it should have */
/* an H263EncContext */
if (!s->context_initialized) {
avctx->width = s->width;
avctx->height = s->height;
if (MPV_common_init(s) < 0)
return -1;
} else if (s->width != avctx->width || s->height != avctx->height) {
/* H.263 could change picture size any time */
MPV_common_end(s);
if (MPV_common_init(s) < 0)
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment