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 DE16845A07 for ; Thu, 9 Mar 2023 00:50:45 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id B85ED68BD6E; Thu, 9 Mar 2023 02:50:42 +0200 (EET) Received: from mail-4324.protonmail.ch (mail-4324.protonmail.ch [185.70.43.24]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D14A268BC3C for ; Thu, 9 Mar 2023 02:50:35 +0200 (EET) Date: Thu, 09 Mar 2023 00:50:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1678323034; x=1678582234; bh=A09gPONf38JBKQiuz6JJEOZRRPnsXJ/L4Rieky1UGjM=; h=Date:To:From:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=dMxy41EUVimYQ7b8+boSlp5B6nrbsJrl43wox/ZEusDYQeaU4bn8uahkMGiBNll9s cen1IZur18irh1yj/cjDa8tXbLKOa9DqZfPBI3hPSx84E3ZJYSxYGcv9aTiFRrjf9u 3PBkow4elfWS03qmv7mJmxaeHw5asWxrkKRT+l+GRxLRwp1XEo4Ufuhn0jVjLFOnV4 Sh9pI5w6eHoEIn9jDteFHFuwNRSI0C/PwDKtedt3bXjvkhA+RtNOuCFZx35MEaEJrn AT/9sBxprB2tkMrNBUwu7aET35+BC45Gc6ZRnW4bFgQPh2pVBhskPjxTxJGx0xj8LO Q5ghxedtK9Q/g== To: FFmpeg development discussions and patches From: asivery Message-ID: In-Reply-To: References: Feedback-ID: 33509725:user:proton MIME-Version: 1.0 Subject: Re: [FFmpeg-devel] [PATCH] libavformat/aea EOF Patch 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: Thank you very much, indeed that works as well. Here's the updated patch. Best regards. --- diff --git a/libavformat/aea.c b/libavformat/aea.c index f4b39e4f9e..d16217381b 100644 --- a/libavformat/aea.c +++ b/libavformat/aea.c @@ -90,13 +90,7 @@ static int aea_read_header(AVFormatContext *s) static int aea_read_packet(AVFormatContext *s, AVPacket *pkt) { - int ret = av_get_packet(s->pb, pkt, s->streams[0]->codecpar->block_align); - - pkt->stream_index = 0; - if (ret <= 0) - return AVERROR(EIO); - - return ret; + return av_get_packet(s->pb, pkt, s->streams[0]->codecpar->block_align); } const AVInputFormat ff_aea_demuxer = { ------- Original Message ------- On Thursday, March 9th, 2023 at 12:28 AM, Marton Balint wrote: > > On Sat, 4 Mar 2023, asivery wrote: > > > Could someone please take a look? This would improve AEA demuxing, right now every AEA file makes ffmpeg crash with an error. > > > The way I see it, you could simply replace the whole body of > aea_read_packet() with this single line: > > return av_get_packet(s->pb, pkt, s->streams[0]->codecpar->block_align); > > > Regards, > Marton > > > Thank you in advance :) > > ------- Original Message ------- > > On Saturday, October 22nd, 2022 at 7:43 PM, asivery asivery@protonmail.com wrote: > > > > > Hello, > > > This patch aims to fix a problem I've noticed while working with AEA (Sony ATRAC1 comtainer) files. > > > Right now FFmpeg always exits with an "Input/Output error" when dealing with AEA files. > > > This patch solves that issue by returning AVERROR_EOF once the end of file is encountered, instead of always returning AVERROR(EIO). > > > > > > I am sending this patch again because of an incorrect mime type of the first one. > > > > > > Best regards,Asivery > > > _______________________________________________ > > > 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". > > _______________________________________________ > 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". _______________________________________________ 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".