]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/h261dec: Remove parse_context cruft
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 22 Dec 2020 17:54:12 +0000 (18:54 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 8 Mar 2021 12:25:04 +0000 (13:25 +0100)
The H.261 decoder doesn't use the ParseContext of its
MpegEncContext since e7316976650b429345da619c3acff38004aaf6b8.

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/h261dec.c

index 2b3408d7b38f3050b8dccb3fbef4a2af7ab9e63f..5c25aa9cb39a59c1f6000b727da2cbbf64a2df8f 100644 (file)
@@ -608,10 +608,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) {