Fix decoding for streams containing differently sampled frames