Commit a2eb9a14 authored by Eloi Bail's avatar Eloi Bail Committed by Guillaume Roguez
Browse files

daemon: don't use deprecated avcodec_alloc_frame

avcodec_alloc_frame is an deprecated API.
Now use av_frame_alloc.
libav_deps.h take care of backward compatibility.

Change-Id: Ifaf27e6908d09b5772c04fb819243901a3cb5660
parent f2952c34
......@@ -346,7 +346,7 @@ int MediaEncoder::encode_audio(const AudioBuffer &buffer)
const auto sample_rate = buffer.getSampleRate();
while (nb_frames > 0) {
AVFrame *frame = avcodec_alloc_frame();
AVFrame *frame = av_frame_alloc();
if (!frame) {
return -1;
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