[Ffmpeg-devel] [PATCH] Fix DTS in WAV file playback.
Benjamin Zores
ben
Fri Feb 24 12:22:42 CET 2006
On Sun, 19 Feb 2006 00:52:20 +0100
Michael Niedermayer <michaelni at gmx.at> wrote:
> Hi
>
> On Sun, Feb 19, 2006 at 12:30:25AM +0100, Benjamin Zores wrote:
> > On Sat, 18 Feb 2006 22:36:27 +0100
> > Michael Niedermayer <michaelni at gmx.at> wrote:
> >
> > > iam not too happy eith this patch, but i cant think of a better way to do it
> > > so its ok and can be applied
> >
> > I don't like the hack much myself but as you've said, i can't see a 'less worse' way.
> > Anyhow, please consider this revised version then.
> > It provides a better (and sure) way to handle DTS header.
>
> is it possible to require more then 1 dts header for detection? this would
> reduce the chance of false detections ...
>
> having 4bytes matching will happen approximately once in 2^32 cases
> but if you search 16384 cases then its down to once in 2^18 cases
Here's a revised patch.
It checks for 4 valid DTS frame signatures before concluding it's DTS codec and not PCM.
Ben
--
"My life, and by extension everyone else's is meaningless."
Bender, Futurama
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 2201 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060224/64480b8c/attachment.obj>
More information about the ffmpeg-devel
mailing list