Bug 236036

Summary: Compile failes with FFmpeg version SVN-r23001
Product: [Applications] k3b Reporter: niko.wilms
Component: generalAssignee: Michał Małek <michalm>
Status: RESOLVED FIXED    
Severity: normal CC: trueg
Priority: NOR    
Version: 1.91.0   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 1.92.0

Description niko.wilms 2010-05-02 15:54:04 UTC
Version:           1.91.0 (using Devel) 
OS:                Linux

I get the following compile error for plugins/decoder/ffmpeg/k3bffmpegdecoder.cpp and plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp

[ 91%] Building CXX object plugins/decoder/ffmpeg/CMakeFiles/k3bffmpegdecoder.dir/k3bffmpegdecoder.o
In file included
   from /usr/include/libavutil/avutil.h:81,
   from /usr/include/libavcodec/avcodec.h:30,
   from /var/tmp/portage/app-cdr/k3b-1.91.0_rc2/work/k3b-1.91.0/plugins/decoder/ffmpeg/k3bffmpegdecoder.cpp:26:
/usr/include/libavutil/common.h: In function ‘int32_t av_clipl_int32(int64_t)’:
/usr/include/libavutil/common.h:154: error: ‘UINT64_C’ was not declared in this scope



Reproducible: Always

Steps to Reproduce:
use FFmpeg version SVN-r23001



I get it compile clean with adding 
#define __STDC_CONSTANT_MACROS before includeing ffmpeg header
and
#undef __STDC_CONSTANT_MACROS after includeing
Comment 1 Michał Małek 2010-05-16 12:52:37 UTC
SVN commit 1127342 by mmalek:

Fixed compilation of FFmpeg plugin. Now __STDC_CONSTANT_MACROS have to be defined.
See http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2010-May/088074.html for further information.
BUG: 236036


 M  +2 -0      ChangeLog  
 M  +7 -0      plugins/decoder/ffmpeg/k3bffmpegdecoder.cpp  
 M  +28 -21    plugins/decoder/ffmpeg/k3bffmpegwrapper.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1127342