Browse Source

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

tags/n2.7
Carl Eugen Hoyos 10 years ago
parent
commit
ee8c18387d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mpeg.c

+ 1
- 1
libavformat/mpeg.c 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 {


Loading…
Cancel
Save