@@ -23,3 +23,17 @@
var_Create( p_dec, "grayscale", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
var_Get( p_dec, "grayscale", &val );
+--- modules/codec/ffmpeg/audio.c.orig 2008-12-29 01:26:11.000000000 +0100
++++ modules/codec/ffmpeg/audio.c 2008-12-29 01:27:15.000000000 +0100
+@@ -111,7 +111,11 @@
+ p_sys->p_context->channels = p_dec->fmt_in.audio.i_channels;
+ p_sys->p_context->block_align = p_dec->fmt_in.audio.i_blockalign;
+ p_sys->p_context->bit_rate = p_dec->fmt_in.i_bitrate;
++#if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
+ p_sys->p_context->bits_per_sample = p_dec->fmt_in.audio.i_bitspersample;
++#else
++ p_sys->p_context->bits_per_coded_sample = p_dec->fmt_in.audio.i_bitspersample;
++#endif
+
+ if( ( p_sys->p_context->extradata_size = p_dec->fmt_in.i_extra ) > 0 )
+ {
|