[FFmpeg-cvslog] h264dec: do not set picture_structure on init

Anton Khirnov git at videolan.org
Fri Apr 10 17:53:38 EEST 2020


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Jul 30 14:43:33 2017 +0200| [fc12d6c258985713a3b75672b8e853f0e264e7e2] | committer: Anton Khirnov

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()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fc12d6c258985713a3b75672b8e853f0e264e7e2
---

 libavcodec/h264dec.c | 1 -
 1 file changed, 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list