]> git.tuebingen.mpg.de Git - paraslash.git/commit
vss: Handle empty chunk groups gracefully.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 20 Sep 2021 17:15:12 +0000 (19:15 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Wed, 29 Sep 2021 17:03:37 +0000 (19:03 +0200)
commit6428bef6e3c172851dc97c3e126f438c7aaf0695
treec5284863bd60113d7321721ca6282c151a00ff18
parentfd671d3289feca3d64c51fa2f34b1c09361da063
vss: Handle empty chunk groups gracefully.

The assertion in compute_group_size() triggers if the stream is
positioned right at the end of the file when the next chunk group
starts. This was observed with an mp3 file and the udp sender when
pausing and restarting the stream at the end of the file.

Fix this braino by returning EOF instead of aborting if the next
chunk group happens to be empty.
vss.c