avformat/hlsenc: Fix check for SPS