[DVDnav-discuss] [PATCH] Fix the audio format enum in dvd_types.h

Andi ace20022 at ymail.com
Thu Mar 21 10:43:49 CET 2013


Hi,

the enum DVDAudioFormat_t in dvd_types.h contains wrongly defined constants, especially lpcm is 4 not 5.

Index: src/dvdnav/dvd_types.h
===================================================================
--- src/dvdnav/dvd_types.h    (revision 1253)
+++ src/dvdnav/dvd_types.h    (working copy)
@@ -160,15 +160,14 @@
 
 /* The audio format */
 typedef enum {
-  DVD_AUDIO_FORMAT_AC3       = 0,
-  DVD_AUDIO_FORMAT_MPEG1     = 1,
-  DVD_AUDIO_FORMAT_MPEG1_DRC = 2,
-  DVD_AUDIO_FORMAT_MPEG2     = 3,
-  DVD_AUDIO_FORMAT_MPEG2_DRC = 4,
-  DVD_AUDIO_FORMAT_LPCM      = 5,
-  DVD_AUDIO_FORMAT_DTS       = 6,
-  DVD_AUDIO_FORMAT_SDDS      = 7,
-  DVD_AUDIO_FORMAT_Other     = 8
+  DVD_AUDIO_FORMAT_AC3        = 0,
+  DVD_AUDIO_FORMAT_UNKNOWN_1  = 1,
+  DVD_AUDIO_FORMAT_MPEG       = 2,
+  DVD_AUDIO_FORMAT_MPEG2_EXT  = 3,
+  DVD_AUDIO_FORMAT_LPCM       = 4,
+  DVD_AUDIO_FORMAT_UNKNOWN_5  = 5,
+  DVD_AUDIO_FORMAT_DTS        = 6,
+  DVD_AUDIO_FORMAT_SDDS       = 7
 } DVDAudioFormat_t;
 
 /* Audio language extension */

Best regards,

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dvd_types.h.patch
Type: application/octet-stream
Size: 908 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/dvdnav-discuss/attachments/20130321/e7a34e96/attachment.obj>


More information about the DVDnav-discuss mailing list