ffmpeg demuxer: Fix seg fault when changing channels