summaryrefslogtreecommitdiff
path: root/libavcodec/h264dec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2017-07-30 14:43:33 +0200
committerAnton Khirnov <anton@khirnov.net>2020-04-10 15:53:31 +0200
commitfc12d6c258985713a3b75672b8e853f0e264e7e2 (patch)
tree788510a043462dc73aed8a3282dc27febf1b7c9b /libavcodec/h264dec.c
parent4fb05c0d5d8dd440b23aea748b21bad3407de0e0 (diff)
h264dec: do not set picture_structure on init
This has been cargo culted from mpegvideo and serves no useful purpose. It will be initialize correctly in h264_field_start()
Diffstat (limited to 'libavcodec/h264dec.c')
-rw-r--r--libavcodec/h264dec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index d2269b5cae..e374f32e91 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -309,7 +309,6 @@ static int h264_init_context(AVCodecContext *avctx, H264Context *h)
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;
h->poc.prev_poc_msb = 1 << 16;