[FFmpeg-devel] [PATCH] S/PDIF demuxer (was:[PATCH] Detect DTS in wav (issue70) + about ac3-in-wav)
Anssi Hannula
anssi.hannula
Fri Jul 23 11:35:58 CEST 2010
Carl Eugen Hoyos kirjoitti perjantai, 23. hein?kuuta 2010 11:47:30:
> Anssi Hannula <anssi.hannula <at> iki.fi> writes:
> > Or did you mean that 4 byte sync code + data_type check is not enough,
> > even if it is in the beginning of file?
>
> Yes, sorry for being unclear. I forgot size is not enough to find the next
> syncword.
Ok, I can add checks for additional sync code(s).
I'll also make it return a lower value when too few codes are found
(AVPROBE_SCORE_MAX / 4 or AVPROBE_SCORE_MAX / 8), and only return
AVPROBE_SCORE_MAX - 1 for too few codes if there is a WAV signature so that we
tie with wav_probe, so that we get more probe bytes to see if more sync codes
exist or not.
> > I did that because some other probes return AVPROBE_SCORE_MAX for 4-byte
> > codes
>
> Which ones?
Hmm, actually I can only see raw dirac now, though that doesn't really qualify
as 'some', I guess :)
--
Anssi Hannula
More information about the ffmpeg-devel
mailing list