libdash
libdash copied to clipboard
qtsampleplayer fails to compile due to deprecation of avcodec_alloc_frame() in ffmpeg
on ubuntu 18.04, running make for qtsampleplayer results in several deprecation warnings, but fails to compile due to:
this->frame = avcodec_alloc_frame();
^~~~~~~~~~~~~~~~~~~
avcodec_send_frame
[ 18%] Building CXX object CMakeFiles/qtsampleplayer.dir/libdashframework/Buffer/MediaObjectBuffer.cpp.o
CMakeFiles/qtsampleplayer.dir/build.make:67: recipe for target 'CMakeFiles/qtsampleplayer.dir/Decoder/LibavDecoder.cpp.o' failed
I ran into this as well. Downloading an older version of libav fixed it. I think I used 10.5 or something. The example is pretty old.