summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vp9_superframe_split_bsf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vp9_superframe_split_bsf.c b/libavcodec/vp9_superframe_split_bsf.c
index 7b6fa38..9c4aa33 100644
--- a/libavcodec/vp9_superframe_split_bsf.c
+++ b/libavcodec/vp9_superframe_split_bsf.c
@@ -126,6 +126,8 @@ static int vp9_superframe_split_filter(AVBSFContext *ctx, AVPacket *out)
return 0;
fail:
+ if (ret < 0)
+ av_packet_unref(out);
av_packet_unref(&s->buffer_pkt);
return ret;
}
OpenPOWER on IntegriCloud