From patchwork Fri Dec 25 15:47:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 24651 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 8897844B6ED for ; Fri, 25 Dec 2020 17:53:08 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6C65268AE7E; Fri, 25 Dec 2020 17:53:08 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2082B68AE6B for ; Fri, 25 Dec 2020 17:53:00 +0200 (EET) Received: by mail-ej1-f42.google.com with SMTP id q22so6653173eja.2 for ; Fri, 25 Dec 2020 07:53:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=lj4WFLhKWVcGbNNy6wOB2O5lauzhjsst2W/2MTfk+WE=; b=gw3dIBkW/S+9XXpt4cqhfLDpeKSIhgDCQ4aUuMo0lbd7dTthU4txWdjBfaPnfZ+eVs kjlDgJoPhi8GGGslHYF2jWAj/iz+ymm2HsxEaSQiLtQ/07auyX0HHIVhZytAVkk1QreA 79ojpt6ycG8VVV/S4H+J+OkFe44wC3o/uJXw2+vDXa2h4KMC/oHaPVxNAVPL4QqrmMBp r+Jq9vJIMBwzbshdDJK9v2OP7d+gRVAtcu2kn0yTC4UGWTVg+2La1gmQ0Js0zQNegGNl IHCp+0UMZMNUyjdTHhyPiUG+IW0hvZRx1Y/ln663VYlAcYrdqJPhFrWYkYyccJ8+ua77 9D6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=lj4WFLhKWVcGbNNy6wOB2O5lauzhjsst2W/2MTfk+WE=; b=MRsnJAXj+R1uopB2RkOQmVeoV/fk89W2FWs3lJFOUvkeIO8blIyLDgFjJIeNoTJEsa Rd+xfO0LdYw0Zf0XRVOsroOG9YA5SMuvUjd21LDiZQqXVeUsxqv0V5Q96nMrk/OT6GaH BD8bN//EDiCwgE8EufUL6BM4JSrKRbncLJnKbZTObrEdH0IoElCSl0WCUGGfRMRfIfdE rerUMbEXnJwfvp85KEaiJ9l0PJCO/Z9YWkb6wO97uaL5VRgNZVe2dUfnT0AgrUtvNQx4 +goUGvIElbT/e5qHKxUbeTYwV9YaF4yyZTLrYNHejNpgZXQcG92uLIECTEQgAsli00ex E14Q== X-Gm-Message-State: AOAM5303NkRD9EjftoyKBbQXEEQIbGvkE6ALBuw+7nFSZ4kfNkgc31It iwQtK8+L1MBEcO5iNNZ17nJl/c62Ihc= X-Google-Smtp-Source: ABdhPJw6tClvd4dc+z/QU3lmIw8dR5kugmrchRp26Zb+ZR/g+FdltYKxrXYvkCktQ+HQh71EquM3gA== X-Received: by 2002:a17:906:5857:: with SMTP id h23mr14289483ejs.465.1608911579402; Fri, 25 Dec 2020 07:52:59 -0800 (PST) Received: from sblaptop.fritz.box (ipbcc1aa4b.dynamic.kabel-deutschland.de. [188.193.170.75]) by smtp.gmail.com with ESMTPSA id ho12sm13733010ejc.45.2020.12.25.07.52.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Dec 2020 07:52:58 -0800 (PST) From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 25 Dec 2020 16:47:21 +0100 Message-Id: <20201225154724.287465-4-andreas.rheinhardt@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201225154724.287465-1-andreas.rheinhardt@gmail.com> References: <20201225154724.287465-1-andreas.rheinhardt@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 4/7] avcodec/h261dec: Remove parse_context cruft X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" The H.261 decoder doesn't use the ParseContext of its MpegEncContext since e7316976650b429345da619c3acff38004aaf6b8. Signed-off-by: Andreas Rheinhardt --- 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) {