mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
avauddev: Unref decoded AVFrame after we're done with it
Otherwise we might leak some memory, like all compressed data when using avdec_ac3.
This commit is contained in:
parent
ee7a9e000b
commit
c6cc7b385a
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue