ffmpeg: Avoid duplicating Closed Captions when increasing frame rate.
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>
Fri, 23 Nov 2018 17:49:27 +0000 (18:49 +0100)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Tue, 27 Nov 2018 17:38:09 +0000 (18:38 +0100)
Fixes ticket #7506.

fftools/ffmpeg.c

index 085d6d2..6abcc57 100644 (file)
@@ -1286,6 +1286,8 @@ static void do_video_out(OutputFile *of,
         ret = avcodec_send_frame(enc, in_picture);
         if (ret < 0)
             goto error;
+        // Make sure Closed Captions will not be duplicated
+        av_frame_remove_side_data(in_picture, AV_FRAME_DATA_A53_CC);
 
         while (1) {
             ret = avcodec_receive_packet(enc, &pkt);