mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
fftools/ffmpeg: Zero subtitle packet padding
Fixes uninitialized reads in the sub-lrc-remux test. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
8136ab8e76
commit
b0ae5d02f3
@ -1118,7 +1118,7 @@ static void do_subtitle_out(OutputFile *of,
|
||||
exit_program(1);
|
||||
}
|
||||
|
||||
pkt->size = subtitle_out_size;
|
||||
av_shrink_packet(pkt, subtitle_out_size);
|
||||
pkt->pts = av_rescale_q(sub->pts, AV_TIME_BASE_Q, ost->mux_timebase);
|
||||
pkt->duration = av_rescale_q(sub->end_display_time, (AVRational){ 1, 1000 }, ost->mux_timebase);
|
||||
if (enc->codec_id == AV_CODEC_ID_DVB_SUBTITLE) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user