[FFmpeg-cvslog] lavfi/fps: Avoid duplicating Closed Captions when increasing frame rate.

Carl Eugen Hoyos git at videolan.org
Tue Nov 27 19:38:33 EET 2018


ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Fri Nov 23 18:48:50 2018 +0100| [1893c72086024e53ac32312ecb96693c5be023d0] | committer: Carl Eugen Hoyos

lavfi/fps: Avoid duplicating Closed Captions when increasing frame rate.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1893c72086024e53ac32312ecb96693c5be023d0
---

 libavfilter/version.h | 2 +-
 libavfilter/vf_fps.c  | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavfilter/version.h b/libavfilter/version.h
index 76b212305a..c6b4d981c9 100644
--- a/libavfilter/version.h
+++ b/libavfilter/version.h
@@ -31,7 +31,7 @@
 
 #define LIBAVFILTER_VERSION_MAJOR   7
 #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, \
                                                LIBAVFILTER_VERSION_MINOR, \
diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c
index 9167a00a13..6b99f20d2b 100644
--- a/libavfilter/vf_fps.c
+++ b/libavfilter/vf_fps.c
@@ -249,6 +249,8 @@ 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",



More information about the ffmpeg-cvslog mailing list