avsdec: Set dimensions instead of relying on the demuxer.