bitmovin / libdash

MPEG-DASH Access Library - Official ISO/IEC MPEG-DASH Reference Implementation
https://bitmovin.com/
589 stars 169 forks source link

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

Open AnthonyParkssonos opened 4 years ago

AnthonyParkssonos commented 4 years ago

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
jhaberly commented 3 years ago

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.