1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

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

This commit is contained in:
Carl Eugen Hoyos 2015-05-17 12:57:27 +02:00
parent 70c0433525
commit ee8c18387d

View File

@ -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 {