git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
avcodec/h264dec: be more explicit in handling container cropping
[ffmpeg.git]
/
libavcodec
/
h264dec.c
diff --git
a/libavcodec/h264dec.c
b/libavcodec/h264dec.c
index
35ab51f
..
a8d07df
100644
(file)
--- 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;