[Ffmpeg-cvslog] CVS: ffmpeg/libavformat mpeg.c,1.84,1.85

Måns Rullgård CVS mru
Fri May 20 15:10:12 CEST 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv11445/libavformat

Modified Files:
	mpeg.c 
Log Message:
fix ac3 and dts detection (patch by Joakim Plate <joakim.plate at ecce.se>)


Index: mpeg.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/mpeg.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -d -r1.84 -r1.85
--- mpeg.c	28 Mar 2005 17:33:21 -0000	1.84
+++ mpeg.c	20 May 2005 13:10:09 -0000	1.85
@@ -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) {





More information about the ffmpeg-cvslog mailing list