Re: [FFmpeg-devel] [PATCH v3 1/3] aadec: improve eof detection

2018-07-01 Thread Karsten Otto
> Am 02.07.2018 um 02:33 schrieb Michael Niedermayer : > >> […] > > What is this additional data ? > Short answer: Since there is no official format specification, nobody really knows. Longer answer: From what I have read, the aa format is a generic frame, containing several "tagged“ sectio

Re: [FFmpeg-devel] [PATCH v3 1/3] aadec: improve eof detection

2018-07-01 Thread Michael Niedermayer
On Thu, Jun 21, 2018 at 06:58:24PM +0200, Karsten Otto wrote: > Remember the end position of audio content in the file and check it during > read_packet. There always seems to be other data beyond it, which could be > misinterpreted as more audio. What is this additional data ? [...] -- Michael

[FFmpeg-devel] [PATCH v3 1/3] aadec: improve eof detection

2018-06-21 Thread Karsten Otto
Remember the end position of audio content in the file and check it during read_packet. There always seems to be other data beyond it, which could be misinterpreted as more audio. Also add some extra avio_read error checks, to bail early in case of a broken/truncated file. --- libavformat/aadec.c