libdash icon indicating copy to clipboard operation
libdash copied to clipboard

qtsampleplayer fails to compile due to deprecation of avcodec_alloc_frame() in ffmpeg

Open AnthonyParkssonos opened this issue 5 years ago • 1 comments

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

AnthonyParkssonos avatar May 11 '20 17:05 AnthonyParkssonos

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.

jhaberly avatar Sep 17 '20 17:09 jhaberly