From patchwork Wed Aug 14 23:08:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 14508 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 D4DCF44802E for ; Thu, 15 Aug 2019 02:10:28 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C522D68A993; Thu, 15 Aug 2019 02:10:28 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe07-1.mx.upcmail.net (vie01a-dmta-pe07-1.mx.upcmail.net [84.116.36.17]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2086D68A3B2 for ; Thu, 15 Aug 2019 02:10:21 +0300 (EEST) Received: from [172.31.216.235] (helo=vie01a-pemc-psmtp-pe12.mail.upcmail.net) by vie01a-dmta-pe07.mx.upcmail.net with esmtp (Exim 4.92) (envelope-from ) id 1hy2PM-0004pw-23 for ffmpeg-devel@ffmpeg.org; Thu, 15 Aug 2019 01:10:20 +0200 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe12.mail.upcmail.net with ESMTP id y2ONhGjXtwlysy2ONhbjWr; Thu, 15 Aug 2019 01:09:19 +0200 X-Env-Mailfrom: michael@niedermayer.cc X-Env-Rcptto: ffmpeg-devel@ffmpeg.org X-SourceIP: 213.47.41.20 X-CNFS-Analysis: v=2.3 cv=E5OzWpVl c=1 sm=1 tr=0 a=I1eytVlZLDX1BM2VTtTtSw==:117 a=I1eytVlZLDX1BM2VTtTtSw==:17 a=MKtGQD3n3ToA:10 a=1oJP67jkp3AA:10 a=GEAsPZ9sns4A:10 a=ZZnuYtJkoWoA:10 a=VSQq3Gt7WLAkwQPZxwYA:9 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Thu, 15 Aug 2019 01:08:31 +0200 Message-Id: <20190814230831.27272-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.22.1 MIME-Version: 1.0 X-CMAE-Envelope: MS4wfJIiJKRjGFpBKSFPBt08hxzjAf6SYo9sRXY7PC60U7JxR+2+jsaN2wjD5Km9Hbt1KhtYwisdc5UWLvnG00voWSIbeSR83x4fJCrnA6NsaUHTKLSrTFqA rqLB8ZmzCpFp65VdCIwXtb5IJApyluhzOItmShz9s4lmiX5oWCbdAL0m Subject: [FFmpeg-devel] [PATCH] avcodec/rawdec: Remove redundant code 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Michael Niedermayer --- libavcodec/rawdec.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavcodec/rawdec.c b/libavcodec/rawdec.c index 53f5b76e93..35d7653174 100644 --- a/libavcodec/rawdec.c +++ b/libavcodec/rawdec.c @@ -239,9 +239,6 @@ static int raw_decode(AVCodecContext *avctx, void *data, int *got_frame, if (res < 0) return res; - frame->pkt_pos = avctx->internal->last_pkt_props->pos; - frame->pkt_duration = avctx->internal->last_pkt_props->duration; - if (context->tff >= 0) { frame->interlaced_frame = 1; frame->top_field_first = context->tff;