Commit ee8c1838 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavf/mpeg: Do not detect unknown audio in Hikvision streams as alaw.

parent 70c04335
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment