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

Michael Niedermayer michaelni
Fri Jul 23 15:32:50 CEST 2010


On Fri, Jul 23, 2010 at 08:00:21AM +0300, Anssi Hannula wrote:
[...]
> @@ -103,6 +105,7 @@ static void bswap_buf16(uint16_t *dst, const uint16_t *src, int w)
>          dst[i + 0] = av_bswap16(src[i + 0]);
>  }
>  
> +#if CONFIG_SPDIF_MUXER
>  static int spdif_header_ac3(AVFormatContext *s, AVPacket *pkt)
>  {
>      IEC958Context *ctx = s->priv_data;
> @@ -158,6 +161,7 @@ static const enum IEC958DataType mpeg_data_type[2][3] = {
>      { IEC958_MPEG2_LAYER1_LSF, IEC958_MPEG2_LAYER2_LSF, IEC958_MPEG2_LAYER3_LSF },  //MPEG2 LSF
>      { IEC958_MPEG1_LAYER1,     IEC958_MPEG1_LAYER23,    IEC958_MPEG1_LAYER23 },     //MPEG1
>  };
> +#endif

if it compiles without the ifdefs then please remove them
its the compilers job to remove unused static functions
(might needs a av_unused))

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The educated differ from the uneducated as much as the living from the
dead. -- Aristotle 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100723/c36c1ff4/attachment.pgp>



More information about the ffmpeg-devel mailing list