[FFmpeg-devel] [PATCH] S/PDIF demuxer (was:[PATCH] Detect DTS in wav (issue70) + about ac3-in-wav)
Carl Eugen Hoyos
cehoyos
Fri Jul 23 09:57:06 CEST 2010
Anssi Hannula <anssi.hannula <at> iki.fi> writes:
> Ok, attached is an S/PDIF demuxer. Both ac3-in-spdif-in-wav files and normal
> wav files confirmed to work correctly after the patch.
> + if (state == (AV_BSWAP16C(SYNCWORD1) << 16 | AV_BSWAP16C(SYNCWORD2))) {
> + if (buf == p->buf + 7)
> + return AVPROBE_SCORE_MAX; /* sync word at the very beginning */
Please also test if data_type < 0x37 and use pkt_size to find the next syncwords.
Carl Eugen
More information about the ffmpeg-devel
mailing list