aboutsummaryrefslogtreecommitdiffstats
path: root/tools/target_sws_fuzzer.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2024-06-20 16:33:18 +0300
committerMartin Storsjö <martin@martin.st>2024-07-04 23:33:24 +0300
commit52f57568d5ed036aca5ee4259c69e7c1476b6d66 (patch)
treeb750ce2e066abc9499afc4497a97cfb269d8653f /tools/target_sws_fuzzer.c
parent01312fdfcfd6dd3c0ab079c49ba15bdbee71959e (diff)
downloadffmpeg-52f57568d5ed036aca5ee4259c69e7c1476b6d66.tar.gz
hlsenc: Fix setting vs->start_pos when not using HLS_SINGLE_FILE or hls_segment_size
When not using HLS_SINGLE_FILE or hls_segment_size, we're writing each segment into a separate file. In that case, the file start pos for each segment will be zero. This matches the case in (hls->max_seg_size > 0) above, where we decide to switch to a new file. This fixes the calculation of "vs->size = new_start_pos - vs->start_pos" at the start of hls_write_packet; previously, start_pos would refer to the byte size of the previous segment file, giving vs->size entirely bogus values here. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'tools/target_sws_fuzzer.c')
0 files changed, 0 insertions, 0 deletions