Commit 807c72b2 authored by Max Kellermann's avatar Max Kellermann

decoder/ffmpeg: use av_packet_unref() instead of av_free_packet()

av_free_packet() was deprecated in FFmpeg 3.0.
parent 74dbaade
ver 0.19.15 (not yet released)
* decoder
- ffmpeg: support FFmpeg 3.0
- ffmpeg: use as fallback instead of "mad" if no plugin matches
* fix more build failures on non-glibc builds due to constexpr Mutex
......
......@@ -640,7 +640,11 @@ ffmpeg_decode(Decoder &decoder, InputStream &input)
} else
cmd = decoder_get_command(decoder);
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(56, 25, 100)
av_packet_unref(&packet);
#else
av_free_packet(&packet);
#endif
if (cmd == DecoderCommand::SEEK) {
int64_t where =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment