X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_fps.c;h=cf1e36726aeffd407e7e0e9ae5f5ac28cd251138;hb=18befac5da2c71aeb9922b6fd5551502f4c5a913;hp=9167a00a13ccb7191534b43fb6987cfac21592e1;hpb=03210fe138f3b3bd7f5272fe29aca810cf517329;p=ffmpeg diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c index 9167a00a13c..cf1e36726ae 100644 --- a/libavfilter/vf_fps.c +++ b/libavfilter/vf_fps.c @@ -249,12 +249,14 @@ static int write_frame(AVFilterContext *ctx, FPSContext *s, AVFilterLink *outlin frame = av_frame_clone(s->frames[0]); if (!frame) return AVERROR(ENOMEM); + // Make sure Closed Captions will not be duplicated + av_frame_remove_side_data(s->frames[0], AV_FRAME_DATA_A53_CC); frame->pts = s->next_pts++; av_log(ctx, AV_LOG_DEBUG, "Writing frame with pts %"PRId64" to pts %"PRId64"\n", s->frames[0]->pts, frame->pts); s->cur_frame_out++; - + *again = 1; return ff_filter_frame(outlink, frame); } }