]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264_redundant_pps_bsf.c
avcodec/alsdec: Discard frames for which no channel could be decoded
[ffmpeg] / libavcodec / h264_redundant_pps_bsf.c
index 80b8634c7be9e9653f21ffb5cef15a6813605cea..8405738c4b2127ef5a468e86e80878d27632c708 100644 (file)
@@ -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 ||