[FFmpeg-devel] [PATCH] S/PDIF demuxer (was:[PATCH] Detect DTS in wav (issue70) + about ac3-in-wav)

Anssi Hannula anssi.hannula
Tue Jul 27 06:59:13 CEST 2010


Michael Niedermayer kirjoitti perjantai, 23. hein?kuuta 2010 16:32:50:
> On Fri, Jul 23, 2010 at 08:00:21AM +0300, Anssi Hannula wrote:
> [...]
> >  }
> > 
> > +#if CONFIG_SPDIF_MUXER
> > 
> >  static int spdif_header_ac3(AVFormatContext *s, AVPacket *pkt)
[...]
> 
> if it compiles without the ifdefs then please remove them
> its the compilers job to remove unused static functions
> (might needs a av_unused))

It compiles, but warnings are emitted about unused functions when one of spdif 
demuxer or muxer is disabled (and I assumed you didn't want me to add 
av_unused to every function).

Attached is a new version with unnecessary ifdefs removed and a better probe 
function.

-- 
Anssi Hannula



More information about the ffmpeg-devel mailing list