summaryrefslogtreecommitdiff
path: root/libavdevice/lavfi.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-08-30 07:12:47 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-06 21:45:41 +0200
commit5c2c35da12127a87cc33ed8d85305406a0e56801 (patch)
tree3c443de35c629989175de925e95e29fd95856a62 /libavdevice/lavfi.c
parent26469aebd39e2cfba8c5c1918ac8d19af4d8ee18 (diff)
downloadffmpeg-5c2c35da12127a87cc33ed8d85305406a0e56801.tar.gz
avdevice/lavfi: Remove redundant av_packet_unref()
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>
Diffstat (limited to 'libavdevice/lavfi.c')
-rw-r--r--libavdevice/lavfi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index c04e0b147a..4f05a1542e 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -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;
}