Commit c6cc7b38 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

avauddev: Unref decoded AVFrame after we're done with it

Otherwise we might leak some memory, like all compressed data when using
avdec_ac3.
parent ee7a9e00
......@@ -590,6 +590,7 @@ gst_ffmpegauddec_audio_frame (GstFFMpegAudDec * ffmpegdec,
}
beach:
av_frame_unref (&frame);
GST_DEBUG_OBJECT (ffmpegdec, "return flow %d, out %p, len %d",
*ret, *outbuf, len);
return len;
......
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