Commit 698574ac authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

ffmpeg: Avoid duplicating Closed Captions when increasing frame rate.

Fixes ticket #7506.
parent 1893c720
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment