scan.cpp: sync audio/video detection with current pmt.cpp code