tags 638250 patch
thanks

On Wed, Aug 17, 2011 at 09:22:56PM +0200, Moritz Muehlenhoff wrote:
> Package: moc-ffmpeg-plugin
> Severity: important
> 
> Hi,
> the transition from ffmpeg/0.6.2 to libav/0.7 is planned soonish.
> (libav is a ffmpeg fork, to which Debian will switch, see
> http://en.wikipedia.org/wiki/FFmpeg for more information)
> 
> Your package currently fails to build from source when built against
> libav/0.7.2 and needs to be adapted. You can test this yourself by
> building against the packages from experimental:

Attached patch fixes compilation with libav 0.7 and can also be used
for current sid with libav 0.6. (moc uses deprecated API functions,
which have finally been removed in 0.7).

Cheers,
        Moritz
diff -aur moc-2.5.0~alpha4+svn20110419.orig//decoder_plugins/ffmpeg/ffmpeg.c moc-2.5.0~alpha4+svn20110419/decoder_plugins/ffmpeg/ffmpeg.c
--- moc-2.5.0~alpha4+svn20110419.orig//decoder_plugins/ffmpeg/ffmpeg.c	2011-02-27 02:05:22.000000000 +0100
+++ moc-2.5.0~alpha4+svn20110419/decoder_plugins/ffmpeg/ffmpeg.c	2011-08-31 21:39:28.000000000 +0200
@@ -137,7 +137,7 @@
 	av_read_play (data->ic);
 	for (i = 0; i < data->ic->nb_streams; i++) {
 		data->enc = data->ic->streams[i]->codec;
-		if (data->enc->codec_type == CODEC_TYPE_AUDIO) {
+		if (data->enc->codec_type == AVMEDIA_TYPE_AUDIO) {
 			audio_index = i;
 			break;
 		}

Reply via email to