X-Git-Url: http://git.videolan.org/?p=ffmpeg.git;a=blobdiff_plain;f=libavcodec%2Fh264dec.c;h=a8d07df1e7c5c50726af579deaa409fe2aa1ff2a;hp=35ab51f6160cabf7e176a1a6e0ea2216ae2fbfcb;hb=6505e8cfd02b9112e24bb40c145d6c760f15d622;hpb=000fb61a71c6288c377167fea1541700aef3612d;ds=sidebyside diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c index 35ab51f616..a8d07df1e7 100644 --- a/libavcodec/h264dec.c +++ b/libavcodec/h264dec.c @@ -309,6 +309,9 @@ static int h264_init_context(AVCodecContext *avctx, H264Context *h) h->avctx = avctx; h->cur_chroma_format_idc = -1; + h->width_from_caller = avctx->width; + h->height_from_caller = avctx->height; + h->picture_structure = PICT_FRAME; h->workaround_bugs = avctx->workaround_bugs; h->flags = avctx->flags;