From ee8c18387d02a7ee5ee3317cf1cecd84a7e0d91a Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sun, 17 May 2015 12:57:27 +0200 Subject: [PATCH] lavf/mpeg: Do not detect unknown audio in Hikvision streams as alaw. --- libavformat/mpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c index 9cc0422dff..edb134f740 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 {