download_hds: fix some decoding problems
download_hds: fix some decoding problems

Saw some issues while downloading streams from urplay.

OakNinja/svtplay-dl,iwconfig/svtplay-dl,leakim/svtplay-dl,leakim/svtplay-dl,selepo/svtplay-dl,OakNinja/svtplay-dl,iwconfig/svtplay-dl,dalgr/svtplay-dl,spaam/svtplay-dl,olof/svtplay-dl,spaam/svtplay-dl,leakim/svtplay-dl,qnorsten/svtplay-dl,selepo/svtplay-dl,qnorsten/svtplay-dl,dalgr/svtplay-dl,olof/svtplay-dl,OakNinja/svtplay-dl