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:
Sebastian Dröge 2015-06-02 09:09:09 +02:00
parent ee7a9e000b
commit c6cc7b385a

View file

@ -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;