Commit 45fd7e44 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt Committed by Mark Thompson

filter_units: Unref packet on failure

According to the API, the packet structure a bsf receives must not be
touched on failure, yet filter_units nevertheless did it.
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
parent 7549f0ac
......@@ -153,6 +153,8 @@ static int filter_units_filter(AVBSFContext *bsf, AVPacket *out)
goto fail;
fail:
if (err < 0)
av_packet_unref(out);
ff_cbs_fragment_reset(ctx->cbc, frag);
av_packet_free(&in);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment