Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
av_freep(&sample_data);
return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment