Commit 57f9bc90 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt Committed by Mark Thompson

filter_units: Reindent after previous commit

Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
parent 83be17cf
...@@ -105,33 +105,33 @@ static int filter_units_filter(AVBSFContext *bsf, AVPacket *out) ...@@ -105,33 +105,33 @@ static int filter_units_filter(AVBSFContext *bsf, AVPacket *out)
AVPacket *in = NULL; AVPacket *in = NULL;
int err, i, j; int err, i, j;
err = ff_bsf_get_packet(bsf, &in); err = ff_bsf_get_packet(bsf, &in);
if (err < 0) if (err < 0)
return err; return err;
if (ctx->mode == NOOP) { if (ctx->mode == NOOP) {
av_packet_move_ref(out, in); av_packet_move_ref(out, in);
av_packet_free(&in); av_packet_free(&in);
return 0; return 0;
} }
err = ff_cbs_read_packet(ctx->cbc, frag, in); err = ff_cbs_read_packet(ctx->cbc, frag, in);
if (err < 0) { if (err < 0) {
av_log(bsf, AV_LOG_ERROR, "Failed to read packet.\n"); av_log(bsf, AV_LOG_ERROR, "Failed to read packet.\n");
goto fail; goto fail;
} }
for (i = 0; i < frag->nb_units; i++) { for (i = 0; i < frag->nb_units; i++) {
for (j = 0; j < ctx->nb_types; j++) { for (j = 0; j < ctx->nb_types; j++) {
if (frag->units[i].type == ctx->type_list[j]) if (frag->units[i].type == ctx->type_list[j])
break; break;
} }
if (ctx->mode == REMOVE ? j < ctx->nb_types if (ctx->mode == REMOVE ? j < ctx->nb_types
: j >= ctx->nb_types) { : j >= ctx->nb_types) {
ff_cbs_delete_unit(ctx->cbc, frag, i); ff_cbs_delete_unit(ctx->cbc, frag, i);
--i; --i;
}
} }
}
if (frag->nb_units == 0) { if (frag->nb_units == 0) {
// Don't return packets with nothing in them. // Don't return packets with nothing in them.
......
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