PS input: improve video type detection for MPEG-1/2 vs. AVC/h.264

Fixes #845.