mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
avvidenc: Don't leak AVPacket on EOF
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3390>
This commit is contained in:
parent
47833c8b36
commit
6582cd514a
1 changed files with 1 additions and 0 deletions
|
@ -673,6 +673,7 @@ gst_ffmpegvidenc_receive_packet (GstFFMpegVidEnc * ffmpegenc,
|
|||
g_slice_free (AVPacket, pkt);
|
||||
goto done;
|
||||
} else if (res == AVERROR_EOF) {
|
||||
g_slice_free (AVPacket, pkt);
|
||||
ret = GST_FLOW_EOS;
|
||||
goto done;
|
||||
} else if (res < 0) {
|
||||
|
|
Loading…
Reference in a new issue