[FFmpeg-devel] [PATCH 4/7] avcodec/h261dec: Remove parse_context cruft

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Fri Dec 25 17:47:21 EET 2020


The H.261 decoder doesn't use the ParseContext of its
MpegEncContext since e7316976650b429345da619c3acff38004aaf6b8.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
Does actually anybody use the AV_CODEC_FLAG_TRUNCATED (MpegEncContext
contains a ParseContext because of this flag)?

 libavcodec/h261dec.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavcodec/h261dec.c b/libavcodec/h261dec.c
index 8a49e7d894..4f1f22b279 100644
--- a/libavcodec/h261dec.c
+++ b/libavcodec/h261dec.c
@@ -613,10 +613,7 @@ retry:
     }
 
     if (s->width != avctx->coded_width || s->height != avctx->coded_height) {
-        ParseContext pc = s->parse_context; // FIXME move this demuxing hack to libavformat
-        s->parse_context.buffer = 0;
         ff_mpv_common_end(s);
-        s->parse_context = pc;
     }
 
     if (!s->context_initialized) {
-- 
2.25.1



More information about the ffmpeg-devel mailing list