ffmpeg: Avoid duplicating Closed Captions when increasing frame rate.
Fixes ticket #7506.
This commit is contained in:
parent
1893c72086
commit
698574ac5d
@ -1286,6 +1286,8 @@ static void do_video_out(OutputFile *of,
|
|||||||
ret = avcodec_send_frame(enc, in_picture);
|
ret = avcodec_send_frame(enc, in_picture);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
// Make sure Closed Captions will not be duplicated
|
||||||
|
av_frame_remove_side_data(in_picture, AV_FRAME_DATA_A53_CC);
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
ret = avcodec_receive_packet(enc, &pkt);
|
ret = avcodec_receive_packet(enc, &pkt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user