]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264_redundant_pps_bsf.c
lavc/x264: Use FF_CODEC_CAP_INIT_THREADSAFE if x264 is new.
[ffmpeg] / libavcodec / h264_redundant_pps_bsf.c
index 907e95b9c865f9c67e62f4a11e3a6bcda91de876..8405738c4b2127ef5a468e86e80878d27632c708 100644 (file)
@@ -94,9 +94,7 @@ 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;
             }