From patchwork Sat Oct 1 16:17:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marton Balint X-Patchwork-Id: 805 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.66 with SMTP id o63csp799169vsd; Sat, 1 Oct 2016 09:18:05 -0700 (PDT) X-Received: by 10.28.47.211 with SMTP id v202mr2431803wmv.73.1475338685684; Sat, 01 Oct 2016 09:18:05 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id y3si26615116wje.211.2016.10.01.09.18.04; Sat, 01 Oct 2016 09:18:05 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CAB2668A0B7; Sat, 1 Oct 2016 19:17:44 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from iq.passwd.hu (iq.passwd.hu [217.27.212.140]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id DA18868A0A7 for ; Sat, 1 Oct 2016 19:17:38 +0300 (EEST) Received: from localhost (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id 4919C100B5B; Sat, 1 Oct 2016 18:17:52 +0200 (CEST) X-Virus-Scanned: amavisd-new at passwd.hu Received: from iq.passwd.hu ([127.0.0.1]) by localhost (iq.passwd.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IpALsIkKEVcm; Sat, 1 Oct 2016 18:17:51 +0200 (CEST) Received: from bluegene.passwd.hu (localhost [127.0.0.1]) by iq.passwd.hu (Postfix) with ESMTP id AD5491013A9; Sat, 1 Oct 2016 18:17:50 +0200 (CEST) From: Marton Balint To: ffmpeg-devel@ffmpeg.org Date: Sat, 1 Oct 2016 18:17:42 +0200 Message-Id: <1475338662-16821-2-git-send-email-cus@passwd.hu> X-Mailer: git-send-email 2.6.6 In-Reply-To: <1475338662-16821-1-git-send-email-cus@passwd.hu> References: <1475338662-16821-1-git-send-email-cus@passwd.hu> Subject: [FFmpeg-devel] [PATCH 2/2] ffplay: remove unused viddec_width/viddec_height 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: Marton Balint MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Marton Balint --- ffplay.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ffplay.c b/ffplay.c index a7a6785..6d43191 100644 --- a/ffplay.c +++ b/ffplay.c @@ -230,9 +230,6 @@ typedef struct VideoState { Decoder viddec; Decoder subdec; - int viddec_width; - int viddec_height; - int audio_stream; int av_sync_type; @@ -1780,9 +1777,6 @@ static int get_video_frame(VideoState *is, AVFrame *frame) frame->sample_aspect_ratio = av_guess_sample_aspect_ratio(is->ic, is->video_st, frame); - is->viddec_width = frame->width; - is->viddec_height = frame->height; - if (framedrop>0 || (framedrop && get_master_sync_type(is) != AV_SYNC_VIDEO_MASTER)) { if (frame->pts != AV_NOPTS_VALUE) { double diff = dpts - get_master_clock(is); @@ -2687,9 +2681,6 @@ static int stream_component_open(VideoState *is, int stream_index) is->video_stream = stream_index; is->video_st = ic->streams[stream_index]; - is->viddec_width = avctx->width; - is->viddec_height = avctx->height; - decoder_init(&is->viddec, avctx, &is->videoq, is->continue_read_thread); if ((ret = decoder_start(&is->viddec, video_thread, is)) < 0) goto out;