Bug 236036 - Compile failes with FFmpeg version SVN-r23001
Summary: Compile failes with FFmpeg version SVN-r23001
Status: RESOLVED FIXED
Alias: None
Product: k3b
Classification: Applications
Component: general (show other bugs)
Version: 1.91.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Michał Małek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-02 15:54 UTC by niko.wilms
Modified: 2010-05-26 15:40 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 1.92.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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