From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id D408F40427 for ; Sat, 22 Oct 2022 21:03:59 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AF42168BD84; Sun, 23 Oct 2022 00:03:33 +0300 (EEST) Received: from mail-oa1-f53.google.com (mail-oa1-f53.google.com [209.85.160.53]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E555368BCFB for ; Sun, 23 Oct 2022 00:03:25 +0300 (EEST) Received: by mail-oa1-f53.google.com with SMTP id 586e51a60fabf-13aeccf12fbso7696561fac.11 for ; Sat, 22 Oct 2022 14:03:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=wFS2AGy8pHijwIXaNY5DVZ0xvI7r5kwV6fyTF7t9K40=; b=jrGQdikLSysJ3SgIG6+rgK54xF/Xjc1hMwyPqfZ6b8GC/tLWcU9JjG4zLBvVI41GMN GMWO1whdGFuZTGdoBsFuLDOrZhVlzelt4FibjUjiGvFuNYrVLhxINlh4oIffUsc/qQp1 ZQv3MmepLGzCE2rQxeVuCIAefFozbTuxml9eecrtWmC6EgkMb9gMKWATWoIHgN809NeU eqpZCqX3WtcjbI8TwlKjlonCA8mVABDZXw0ed7qYn9JJlpeUrv/3FnPcrtR3R+2Dhnd+ ST3qRzrqdhYgPpLVmhNTDhwMWr1VonajmTdjqrPoFAf1+swPHbwqNPOeuGw+UfJjxw45 iefg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wFS2AGy8pHijwIXaNY5DVZ0xvI7r5kwV6fyTF7t9K40=; b=q/eypuywoZ3/5X7sk344GTLqHWHLBbhwUNDVx8Ko4LOpm06/nqzz5Kb2K8tfnIZJgH wjlq/D8hhXGrtb2PGkSdlEEOi/yhsyJC3vHsBYgTpBggIBlzRe8YGYHRhIlGgHzGVWxu ANvtdueUkCSPAO2m+eFCs/IqpKZI9klM2jwgTx9CQMc83oIuhYJf48VK/QeInzN4Zaiq GzOPtlI8CUKVpPdGKwif9zESFOg33i8o8knI914LPV4fVppQaOfGwyMsn25CXpyVReV3 zUV85c8WNxCukL9zLfMMJMovVF/ceO9VJgBShjEfBrJF3AQ2EEKIDy/kCnE+icSeElEU dK/g== X-Gm-Message-State: ACrzQf0uhv3WDKGy1cWPmtSEfdtZ1NFHFoiV4ArNBNcZDRuk2MEvd1sH iE5RQNg22+wE2vrJ+vlzkWYz7vPQOz8= X-Google-Smtp-Source: AMsMyM4JY0/3ZN0QJEJEKcVcuhO/b8+wJOj1Xopxltyr5jmji1/IStl1+DaY/zaJWAXyYchWIA9gSQ== X-Received: by 2002:a05:6870:47a8:b0:136:db1c:57b7 with SMTP id c40-20020a05687047a800b00136db1c57b7mr31934794oaq.52.1666472603249; Sat, 22 Oct 2022 14:03:23 -0700 (PDT) Received: from localhost.localdomain ([191.97.187.183]) by smtp.gmail.com with ESMTPSA id q9-20020a05683033c900b006622d085a7fsm1850663ott.50.2022.10.22.14.03.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Oct 2022 14:03:22 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Sat, 22 Oct 2022 18:02:24 -0300 Message-Id: <20221022210226.2200-3-jamrial@gmail.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221022210226.2200-1-jamrial@gmail.com> References: <20221022210226.2200-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 3/5] avcodec/aac_ac3_parser: don't try to sync when the parser is configured to handle complete frames X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Should speed up parsing when the frames come from non raw containers. Signed-off-by: James Almer --- libavcodec/aac_ac3_parser.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/aac_ac3_parser.c b/libavcodec/aac_ac3_parser.c index 6df064e28d..bfbb55d68e 100644 --- a/libavcodec/aac_ac3_parser.c +++ b/libavcodec/aac_ac3_parser.c @@ -40,6 +40,9 @@ int ff_aac_ac3_parse(AVCodecParserContext *s1, int new_frame_start; int got_frame = 0; + if (s1->flags & PARSER_FLAG_COMPLETE_FRAMES) { + i = buf_size; + } else { get_next: i=END_NOT_FOUND; if(s->remaining_size <= buf_size){ @@ -77,6 +80,7 @@ get_next: *poutbuf_size = 0; return buf_size; } + } *poutbuf = buf; *poutbuf_size = buf_size; -- 2.37.3 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".