diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index 9cc0422dfffa02b7cc5e1ae5e51cd279a1e1e4d6..edb134f7405d54ce01085eb6dc13bd9651ba9a0f 100644 --- a/libavformat/mpeg.c +++ b/libavformat/mpeg.c @@ -550,7 +550,7 @@ redo: codec_id = AV_CODEC_ID_ADPCM_ADX; // Auto-detect AC-3 request_probe = 50; - } else if (m->imkh_cctv && startcode == 0x1c0) { + } else if (m->imkh_cctv && startcode == 0x1c0 && len > 80) { codec_id = AV_CODEC_ID_PCM_ALAW; request_probe = 50; } else {