X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=libavcodec%2Fh264_redundant_pps_bsf.c;h=8405738c4b2127ef5a468e86e80878d27632c708;hb=b8a0be93528187721a2414f66abbc252a258afa3;hp=80b8634c7be9e9653f21ffb5cef15a6813605cea;hpb=d78553cc4c791d0e276b37e1f2687301b02ea4a7;p=ffmpeg diff --git a/libavcodec/h264_redundant_pps_bsf.c b/libavcodec/h264_redundant_pps_bsf.c index 80b8634c7be..8405738c4b2 100644 --- a/libavcodec/h264_redundant_pps_bsf.c +++ b/libavcodec/h264_redundant_pps_bsf.c @@ -94,9 +94,9 @@ static int h264_redundant_pps_filter(AVBSFContext *bsf, AVPacket *pkt) if (!au_has_sps) { av_log(bsf, AV_LOG_VERBOSE, "Deleting redundant PPS " "at %"PRId64".\n", pkt->pts); - err = ff_cbs_delete_unit(ctx->input, au, i); - if (err < 0) - goto fail; + ff_cbs_delete_unit(ctx->input, au, i); + i--; + continue; } } if (nal->type == H264_NAL_SLICE ||