Bug 274666 - ffmpegthumbs-4.6.3 fails to build with libav-0.7_beta2 (Gentoo bug #369515)
Summary: ffmpegthumbs-4.6.3 fails to build with libav-0.7_beta2 (Gentoo bug #369515)
Status: RESOLVED DUPLICATE of bug 276375
Alias: None
Product: kdemultimedia
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Andreas Scherf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-01 10:37 UTC by Paolo Pedroni
Modified: 2011-07-18 20:53 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Basic patch to fix (889 bytes, patch)
2011-06-06 17:05 UTC, Scott Kitterman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Pedroni 2011-06-01 10:37:40 UTC
Version:           4.6 (using KDE 4.6.3) 
OS:                Linux

I decided to upgrade my libav libraries to 0.7_beta2 to test some new video filters, and now ffmpegthumbs does not compile anymore. There was an API change in libav-0.7 and it seems that ffmpegthumbs is not compliant with the new API.

Compilation yields the following error:
[ 50%] Building CXX object ffmpegthumbs/CMakeFiles/ffmpegthumbs.dir/ffmpegthumbnailer/filmstripfilter.o                                             
[ 66%] Building CXX object ffmpegthumbs/CMakeFiles/ffmpegthumbs.dir/ffmpegthumbnailer/moviedecoder.o                                                
[ 83%] Building CXX object ffmpegthumbs/CMakeFiles/ffmpegthumbs.dir/ffmpegthumbnailer/imagewriter.o                                                 
[100%] Building CXX object ffmpegthumbs/CMakeFiles/ffmpegthumbs.dir/ffmpegthumbnailer/videothumbnailer.o                                            
/var/tmp/portage/kde-base/ffmpegthumbs-4.6.3/work/ffmpegthumbs-4.6.3/ffmpegthumbs/ffmpegthumbnailer/moviedecoder.cpp: In member function ‘void ffmpegthumbnailer::MovieDecoder::initializeVideo()’:
/var/tmp/portage/kde-base/ffmpegthumbs-4.6.3/work/ffmpegthumbs-4.6.3/ffmpegthumbs/ffmpegthumbnailer/moviedecoder.cpp:125: error: ‘CODEC_TYPE_VIDEO’ was not declared in this scope


Reproducible: Always

Steps to Reproduce:
1. emerge -1 =libav-0.7_beta2
2. emerge -1 ffmpegthumbs

Actual Results:  
The error above

Expected Results:  
Correct compilation of the package

# emerge --info
Portage 2.1.9.42 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, libc-0-r0, 2.6.38-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r6-x86_64-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-gentoo-2.0.2
Timestamp of tree: Wed, 01 Jun 2011 07:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.2-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.82
sys-kernel/linux-headers: 2.6.36.1
sys-libs/glibc:      2.12.2
virtual/os-headers:  0
Comment 1 Andreas Scherf 2011-06-02 11:48:42 UTC
Ok. I will have a look on this.
Comment 2 Scott Kitterman 2011-06-06 17:05:36 UTC
Created attachment 60700 [details]
Basic patch to fix

This probably needs some ifdef work to be suitable for upstream, but the attached patch gets it building on Kubuntu for me with the new libav.
Comment 3 Christoph Feck 2011-07-18 20:53:30 UTC

*** This bug has been marked as a duplicate of bug 276375 ***