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

2018-07-08 Thread Michael Niedermayer
On Sat, Jul 07, 2018 at 07:41:27PM +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. Also add some extra avio_read error checks, > to ba

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

2018-07-07 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