[Ffmpeg-devel] [PATCH] DVR-MS probe audio format - was DVR-MS bug (MP2 decoding)

John Donaghy johnfdonaghy
Tue Mar 13 16:56:42 CET 2007


> >
> > since the options are so few and telling which stream is which is easy,
> > you can do a scan
> > on a short amount of data and keep a scoreboard of the valid syncwords found
>
> and you can use mp3_demuxer.read_probe() to do this, no need to duplicate
> it
>
Here's a patch that works for all samples tested so far. It reads a
few audio frames at the end of the asf_read_header function and tests
if the stream is mp2 or not. If not, it assumes ac3 since those are
the only 2 audio codecs used in dvr-ms.

Let me know if you need a sample uploaded. I still have the original
clip that failed.

John
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lavf_asf_ac3.diff
Type: text/x-patch
Size: 3857 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070313/1e2e2e48/attachment.bin>



More information about the ffmpeg-devel mailing list