[FFmpeg-devel] [PATCH]Autodetect raw flac files

Hendrik Leppkes h.leppkes at gmail.com
Fri Apr 10 00:18:12 CEST 2015


On Fri, Apr 10, 2015 at 12:13 AM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> On Thursday 09 April 2015 03:46:42 pm Michael Niedermayer wrote:
>> On Thu, Apr 09, 2015 at 01:21:32PM +0200, Carl Eugen Hoyos wrote:
>> > Hi!
>> >
>> > Attached patch allows to autodetect headerless flac files.
>> >
>> > Please comment, Carl Eugen
>> >
>> >  flacdec.c |    2 ++
>> >  1 file changed, 2 insertions(+)
>> > 393c746cefb2dd386719591734f01d6df2ca124c  patchflac.diff
>> > diff --git a/libavformat/flacdec.c b/libavformat/flacdec.c
>>
>> i would slightly prefer if more bytes are checked
>
> New patch attached.
>
> Please review, Carl Eugen
>

Whats the source of such files?

The checks still seem rather generic, a 16-bit sync word and a bunch
of values with large ranges allow for easy false positives.


More information about the ffmpeg-devel mailing list