summaryrefslogtreecommitdiff
path: root/fftools
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-11-23 18:49:27 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-11-27 18:38:09 +0100
commit698574ac5d68e806279a8d28aeff48a407377538 (patch)
tree20482686c693d2ed60b498ad73af65065f475e18 /fftools
parent1893c72086024e53ac32312ecb96693c5be023d0 (diff)
ffmpeg: Avoid duplicating Closed Captions when increasing frame rate.
Fixes ticket #7506.
Diffstat (limited to 'fftools')
-rw-r--r--fftools/ffmpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 085d6d2dfb..6abcc57776 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -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);