lavfi/fps: Avoid duplicating Closed Captions when increasing frame rate.
This commit is contained in:
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#define LIBAVFILTER_VERSION_MAJOR 7
|
#define LIBAVFILTER_VERSION_MAJOR 7
|
||||||
#define LIBAVFILTER_VERSION_MINOR 46
|
#define LIBAVFILTER_VERSION_MINOR 46
|
||||||
#define LIBAVFILTER_VERSION_MICRO 100
|
#define LIBAVFILTER_VERSION_MICRO 101
|
||||||
|
|
||||||
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
|
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
|
||||||
LIBAVFILTER_VERSION_MINOR, \
|
LIBAVFILTER_VERSION_MINOR, \
|
||||||
|
@@ -249,6 +249,8 @@ static int write_frame(AVFilterContext *ctx, FPSContext *s, AVFilterLink *outlin
|
|||||||
frame = av_frame_clone(s->frames[0]);
|
frame = av_frame_clone(s->frames[0]);
|
||||||
if (!frame)
|
if (!frame)
|
||||||
return AVERROR(ENOMEM);
|
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++;
|
frame->pts = s->next_pts++;
|
||||||
|
|
||||||
av_log(ctx, AV_LOG_DEBUG, "Writing frame with pts %"PRId64" to pts %"PRId64"\n",
|
av_log(ctx, AV_LOG_DEBUG, "Writing frame with pts %"PRId64" to pts %"PRId64"\n",
|
||||||
|
Reference in New Issue
Block a user