]> git.sesse.net Git - ffmpeg/commitdiff
avdevice/lavfi: Remove redundant av_packet_unref()
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 30 Aug 2020 05:12:47 +0000 (07:12 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 6 Sep 2020 19:45:41 +0000 (21:45 +0200)
Since bae8844e35147f92e612a9e0b44e939a293e5bc9, the AVPacket that is
intended to be used to return the demuxed packet is automatically
unreferenced when the demuxer returns an error. This makes an
av_packet_unref() in the lavfi demuxer redundant.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavdevice/lavfi.c

index c04e0b147a159a5d958ad02566eb7817719587de..4f05a1542edb17e5def381f23e2172cd45b3fe45 100644 (file)
@@ -458,7 +458,6 @@ static int lavfi_read_packet(AVFormatContext *avctx, AVPacket *pkt)
 
     if ((ret = create_subcc_packet(avctx, frame, min_pts_sink_idx)) < 0) {
         av_frame_unref(frame);
-        av_packet_unref(pkt);
         return ret;
     }