Try to improve heuristics to use an AVCodecContextParser.