summaryrefslogtreecommitdiff
path: root/libavformat/mpeg.c
diff options
context:
space:
mode:
authorJoakim Plate <elupus@ecce.se>2005-05-20 13:10:09 +0000
committerMåns Rullgård <mans@mansr.com>2005-05-20 13:10:09 +0000
commit3f2bf07ba72bf4caf24cc567916f146b7baaa7c0 (patch)
tree1b08eeef367cbdb91d04674b18455a80745fb08b /libavformat/mpeg.c
parent6634d0ef1d735c88b31d5fd2a8feb46a7e381b58 (diff)
fix ac3 and dts detection (patch by Joakim Plate <joakim.plate at ecce.se>)
Originally committed as revision 4285 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r--libavformat/mpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index df2d04e47e..06bc4409cb 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -1599,10 +1599,10 @@ static int mpegps_read_packet(AVFormatContext *s,
} else if (startcode >= 0x1c0 && startcode <= 0x1df) {
type = CODEC_TYPE_AUDIO;
codec_id = CODEC_ID_MP2;
- } else if (startcode >= 0x80 && startcode <= 0x89) {
+ } else if (startcode >= 0x80 && startcode <= 0x87) {
type = CODEC_TYPE_AUDIO;
codec_id = CODEC_ID_AC3;
- } else if (startcode >= 0x8a && startcode <= 0x9f) {
+ } else if (startcode >= 0x88 && startcode <= 0x9f) {
type = CODEC_TYPE_AUDIO;
codec_id = CODEC_ID_DTS;
} else if (startcode >= 0xa0 && startcode <= 0xbf) {