From 7f1207cb79e79785ac837a9cd9f9ab6f0ba3462f Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 22 Dec 2020 18:54:12 +0100 Subject: [PATCH] avcodec/h261dec: Remove parse_context cruft The H.261 decoder doesn't use the ParseContext of its MpegEncContext since e7316976650b429345da619c3acff38004aaf6b8. Reviewed-by: Anton Khirnov Signed-off-by: Andreas Rheinhardt --- libavcodec/h261dec.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavcodec/h261dec.c b/libavcodec/h261dec.c index 2b3408d7b3..5c25aa9cb3 100644 --- a/libavcodec/h261dec.c +++ b/libavcodec/h261dec.c @@ -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) {