diff ac3_parser.h @ 5680:5ae5a74b0e4b libavcodec

better AC3 header error reporting
author jbr
date Sat, 15 Sep 2007 02:41:24 +0000
parents c3ee5c30c297
children 1d83e9c34641
line wrap: on
line diff
--- a/ac3_parser.h	Sat Sep 15 00:43:40 2007 +0000
+++ b/ac3_parser.h	Sat Sep 15 02:41:24 2007 +0000
@@ -25,6 +25,13 @@
 
 #include "ac3.h"
 
+typedef enum {
+    AC3_PARSE_ERROR_SYNC        = -1,
+    AC3_PARSE_ERROR_BSID        = -2,
+    AC3_PARSE_ERROR_SAMPLE_RATE = -3,
+    AC3_PARSE_ERROR_FRAME_SIZE  = -4,
+} AC3ParseError;
+
 /**
  * Parses AC-3 frame header.
  * Parses the header up to the lfeon element, which is the first 52 or 54 bits