[FFmpeg-devel] [PATCH] FLAC parser

Michael Chinen mchinen
Mon Jul 19 00:55:05 CEST 2010


Hi,

This FLAC parser takes the suggestions from a thread from another FLAC
parser patch submitted by Jason Ruggles in March 2009[1].
Currently it stores 20 headers (8 bit crc verified) and finds all
possible (16 bit footer) crc-verified sequences within a neighbor
distance of 4.
It penalizes sequences that have changes in sample rate, bit depth,
and channel arrangement.
The settings probably need some twiddling.

Seeking seems to work with it (with my av_build_index version in soc
svn as well).

I used the modifications to flacdec.c (to remove the bytestream and
make a function extern) from Jason's patch, but flac_parser.c is new.

The second patch is just to make ffplay keep calling av_read_frame
after the ByteIOContext has reach EOF.

Michael

[1] http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-March/066533.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-FLAC-parser.patch
Type: application/octet-stream
Size: 25791 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100719/d30ccbe9/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-fix-ffplay-to-keep-calling-av_read_frame-even-if-EOF.patch
Type: application/octet-stream
Size: 709 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100719/d30ccbe9/attachment-0001.obj>



More information about the ffmpeg-devel mailing list