Commit 9362f1a9 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt Committed by Mark Thompson

h264_redundant_pps: Fix looping over an access unit's units

When looping over an access unit's units in positive direction and
deleting some of them, one needs to make sure that a unit that is at
the position of a unit that just got deleted gets checked, too.
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
parent d78553cc
......@@ -97,6 +97,8 @@ static int h264_redundant_pps_filter(AVBSFContext *bsf, AVPacket *pkt)
err = ff_cbs_delete_unit(ctx->input, au, i);
if (err < 0)
goto fail;
i--;
continue;
}
}
if (nal->type == H264_NAL_SLICE ||
......
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