[Ffmpeg-devel] [PATCH] Fix DTS in WAV file playback.

Alex Beregszaszi alex
Sat May 6 22:09:29 CEST 2006


Hi,

> > 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.

+  for (i = 0; i < 16384; i += 2) /* vlc uses 16384*4 (4 DTS frames) */

+  /* At least 4 DTS frame signatures should have been found */
+  if (dts_frames >= 4)

So is it ok or not?

Anyway, I vote for inclusion.

-- 
Alex Beregszaszi 			email: alex at fsn.hu
Free Software Network			cell: +36 70 3144424





More information about the ffmpeg-devel mailing list