[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#638241: Needs to be adapted to libav/0.7.1



tags 638241 patch
thanks

On Wed, Aug 17, 2011 at 10:36:18PM +0200, Moritz Muehlenhoff wrote:
> Package: ffmpegthumbs
> 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 against libav 0.7 and is also usable
for current sid with libav 0.6 (kdemultimedia used deprecated API 
functions, which have finally been removed in 0.7).

Cheers,
        Moritz
diff -aur kdemultimedia-4.6.5.orig/ffmpegthumbs/ffmpegthumbnailer/moviedecoder.cpp kdemultimedia-4.6.5/ffmpegthumbs/ffmpegthumbnailer/moviedecoder.cpp
--- kdemultimedia-4.6.5.orig/ffmpegthumbs/ffmpegthumbnailer/moviedecoder.cpp	2011-01-19 23:23:19.000000000 +0100
+++ kdemultimedia-4.6.5/ffmpegthumbs/ffmpegthumbnailer/moviedecoder.cpp	2011-08-31 10:20:02.000000000 +0200
@@ -122,7 +122,7 @@
 void MovieDecoder::initializeVideo()
 {
     for (unsigned int i = 0; i < m_pFormatContext->nb_streams; i++) {
-        if (m_pFormatContext->streams[i]->codec->codec_type == CODEC_TYPE_VIDEO) {
+        if (m_pFormatContext->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO) {
             m_pVideoStream = m_pFormatContext->streams[i];
             m_VideoStream = i;
             break;

Reply to: