changeset 767:cbfea73709bd libavformat

fix ac3 and dts detection (patch by Joakim Plate <joakim.plate at ecce.se>)
author mru
date Fri, 20 May 2005 13:10:09 +0000
parents ed249b9caa2f
children c71d10dfc681
files mpeg.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg.c	Thu May 19 21:03:03 2005 +0000
+++ b/mpeg.c	Fri May 20 13:10:09 2005 +0000
@@ -1599,10 +1599,10 @@
     } 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) {