diff -Nru k3b-2.0.3a/debian/changelog k3b-2.0.3a/debian/changelog --- k3b-2.0.3a/debian/changelog 2015-12-12 12:55:02.000000000 +0000 +++ k3b-2.0.3a/debian/changelog 2016-05-09 23:38:15.000000000 +0000 @@ -1,3 +1,9 @@ +k3b (2.0.3a-1+rpi1) stretch-staging; urgency=medium + + * Apply patch from BTS to fix build with new ffmpeg. (Closes: 807853) + + -- Peter Michael Green Mon, 09 May 2016 23:37:51 +0000 + k3b (2.0.3a-1) unstable; urgency=medium * Team upload. diff -Nru k3b-2.0.3a/debian/patches/ffmpeg-2.9.patch k3b-2.0.3a/debian/patches/ffmpeg-2.9.patch --- k3b-2.0.3a/debian/patches/ffmpeg-2.9.patch 1970-01-01 00:00:00.000000000 +0000 +++ k3b-2.0.3a/debian/patches/ffmpeg-2.9.patch 2016-05-09 23:37:30.000000000 +0000 @@ -0,0 +1,56 @@ +Description: Replace deprecated FFmpeg API +Author: Andreas Cadhalpun +Last-Update: <2015-12-13> + +--- k3b-2.0.3a.orig/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp ++++ k3b-2.0.3a/plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp +@@ -329,6 +329,11 @@ int K3bFFMpegFile::fillOutputBuffer() + d->outputBufferPos = d->alignedOutputBuffer; + d->outputBufferSize = AVCODEC_MAX_AUDIO_FRAME_SIZE; + ++#ifdef HAVE_FFMPEG_AVCODEC_DECODE_AUDIO4 ++ AVFrame *frame = av_frame_alloc(); ++ int got_frame = 0; ++ int len = ::avcodec_decode_audio4(FFMPEG_CODEC(d->formatContext->streams[0]), frame, &got_frame, &d->packet); ++#else + #ifdef HAVE_FFMPEG_AVCODEC_DECODE_AUDIO3 + int len = ::avcodec_decode_audio3( + #else +@@ -347,14 +352,24 @@ int K3bFFMpegFile::fillOutputBuffer() + #else + d->packetData, d->packetSize ); + #endif ++#endif + + if( d->packetSize <= 0 || len < 0 ) + ::av_free_packet( &d->packet ); + if( len < 0 ) { ++#ifdef HAVE_FFMPEG_AVCODEC_DECODE_AUDIO4 ++ av_frame_free(&frame); ++#endif + kDebug() << "(K3bFFMpegFile) decoding failed for " << m_filename; + return -1; + } + ++#ifdef HAVE_FFMPEG_AVCODEC_DECODE_AUDIO4 ++ d->outputBufferSize = av_get_bytes_per_sample(FFMPEG_CODEC(d->formatContext->streams[0])->sample_fmt) * FFMPEG_CODEC(d->formatContext->streams[0])->channels * frame->nb_samples; ++ memcpy(d->alignedOutputBuffer, frame->data[0], d->outputBufferSize); ++ av_frame_free(&frame); ++#endif ++ + d->packetSize -= len; + d->packetData += len; + } +@@ -420,9 +435,9 @@ K3bFFMpegFile* K3bFFMpegWrapper::open( c + // mp3 being one of them sadly. Most importantly: allow the libsndfile decoder to do + // its thing. + // +- if( file->type() == CODEC_ID_WMAV1 || +- file->type() == CODEC_ID_WMAV2 || +- file->type() == CODEC_ID_AAC ) ++ if( file->type() == AV_CODEC_ID_WMAV1 || ++ file->type() == AV_CODEC_ID_WMAV2 || ++ file->type() == AV_CODEC_ID_AAC ) + #endif + return file; + } diff -Nru k3b-2.0.3a/debian/patches/series k3b-2.0.3a/debian/patches/series --- k3b-2.0.3a/debian/patches/series 2015-12-12 12:50:40.000000000 +0000 +++ k3b-2.0.3a/debian/patches/series 2016-05-09 23:37:30.000000000 +0000 @@ -5,3 +5,4 @@ 112_dont_require_mp3.diff 113_initial_preference.diff cmake-duplicate-doc.diff +ffmpeg-2.9.patch