Page 1 of 1

svn-13245/Ubuntu 10.04 error in gfx/vid_file.cpp

Posted: Tue Nov 22, 2011 10:30 pm
by shenle

Code: Select all

/home/s/vegastrike/svn/vegastrike/src/gfx/vid_file.cpp:230: error: ‘AVMEDIA_TYPE_VIDEO’ was not declared in this scope
/home/s/vegastrike/svn/vegastrike/src/gfx/vid_file.cpp:231: error: ‘AVMEDIA_TYPE_AUDIO’ was not declared in this scope
Previous svn revision compiled successfully on this system was 13105 which did not exhibit this error during compilation.

I think this may be due to some recent changes in ffmpeg. BTW here is my version of ffmpeg (the latest in Ubuntu's repository)
FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 1 / 52.20. 1
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Sep 16 2011 17:08:44, gcc: 4.4.3

Re: svn-13245/Ubuntu 10.04 error in gfx/vid_file.cpp

Posted: Tue Nov 22, 2011 11:08 pm
by klauss
What if you go to src/ffmpeg_init.h:61 and replace >= 52 with > 52?

Re: svn-13245/Ubuntu 10.04 error in gfx/vid_file.cpp

Posted: Tue Nov 22, 2011 11:25 pm
by shenle
That works; with the change above VS is built and runs successfully.