From patchwork Fri Sep 23 22:00:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carl Eugen Hoyos X-Patchwork-Id: 694 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.66 with SMTP id o63csp802104vsd; Fri, 23 Sep 2016 15:00:49 -0700 (PDT) X-Received: by 10.28.8.84 with SMTP id 81mr5116813wmi.22.1474668049292; Fri, 23 Sep 2016 15:00:49 -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 le9si9225196wjc.201.2016.09.23.15.00.48; Fri, 23 Sep 2016 15:00:49 -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 7A19E689CEB; Sat, 24 Sep 2016 01:00:29 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe03-3.mx.upcmail.net (vie01a-dmta-pe03-3.mx.upcmail.net [62.179.121.162]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 357C3689B33 for ; Sat, 24 Sep 2016 01:00:22 +0300 (EEST) Received: from [172.31.216.44] (helo=vie01a-pemc-psmtp-pe02) by vie01a-dmta-pe03.mx.upcmail.net with esmtp (Exim 4.87) (envelope-from ) id 1bnYWL-0005RW-8x for ffmpeg-devel@ffmpeg.org; Sat, 24 Sep 2016 00:00:37 +0200 Received: from [192.168.1.3] ([80.110.109.29]) by vie01a-pemc-psmtp-pe02 with SMTP @ mailcloud.upcmail.net id nA0c1t0010e5hvU01A0dqW; Sat, 24 Sep 2016 00:00:37 +0200 X-SourceIP: 80.110.109.29 From: Carl Eugen Hoyos To: FFmpeg development discussions and patches Date: Sat, 24 Sep 2016 00:00:35 +0200 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Message-Id: <201609240000.35942.cehoyos@ag.or.at> Subject: [FFmpeg-devel] [PATCH/RFC]lavf/aacdec: Do not auto-detect a single frame 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" Hi! I use this patch locally for some time. It fixes many misdetections, a similar patch was applied to loas detection three years ago. An alternative would be to return "1" for two frames. Please comment, Carl Eugen From f3d9ebedcbc137c4d639efdbed485298f9dc9f3e Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Fri, 23 Sep 2016 23:57:03 +0200 Subject: [PATCH] lavf/aacdec: Do not autodetect a single frame. --- libavformat/aacdec.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavformat/aacdec.c b/libavformat/aacdec.c index aa23756..39624e4 100644 --- a/libavformat/aacdec.c +++ b/libavformat/aacdec.c @@ -70,8 +70,6 @@ static int adts_aac_probe(AVProbeData *p) return AVPROBE_SCORE_EXTENSION; else if (max_frames >= 3) return AVPROBE_SCORE_EXTENSION / 2; - else if (max_frames >= 1) - return 1; else return 0; }