Commit 53134fed authored by mru's avatar mru

fix ac3 and dts detection (patch by Joakim Plate <joakim.plate at ecce.se>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4285 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 12f7da8c
...@@ -1599,10 +1599,10 @@ static int mpegps_read_packet(AVFormatContext *s, ...@@ -1599,10 +1599,10 @@ static int mpegps_read_packet(AVFormatContext *s,
} else if (startcode >= 0x1c0 && startcode <= 0x1df) { } else if (startcode >= 0x1c0 && startcode <= 0x1df) {
type = CODEC_TYPE_AUDIO; type = CODEC_TYPE_AUDIO;
codec_id = CODEC_ID_MP2; codec_id = CODEC_ID_MP2;
} else if (startcode >= 0x80 && startcode <= 0x89) { } else if (startcode >= 0x80 && startcode <= 0x87) {
type = CODEC_TYPE_AUDIO; type = CODEC_TYPE_AUDIO;
codec_id = CODEC_ID_AC3; codec_id = CODEC_ID_AC3;
} else if (startcode >= 0x8a && startcode <= 0x9f) { } else if (startcode >= 0x88 && startcode <= 0x9f) {
type = CODEC_TYPE_AUDIO; type = CODEC_TYPE_AUDIO;
codec_id = CODEC_ID_DTS; codec_id = CODEC_ID_DTS;
} else if (startcode >= 0xa0 && startcode <= 0xbf) { } else if (startcode >= 0xa0 && startcode <= 0xbf) {
......
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