aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3_parser.h
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2007-09-15 02:41:24 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2007-09-15 02:41:24 +0000
commit3df880934e721d7e37e4feb1d4a3f226cfc1bf2d (patch)
treee73bc62f058a311c71fffecd89a59f323147dc0c /libavcodec/ac3_parser.h
parentd5b7144e1ffa9b1a48832ba5995261873cb211d7 (diff)
downloadffmpeg-3df880934e721d7e37e4feb1d4a3f226cfc1bf2d.tar.gz
better AC3 header error reporting
Originally committed as revision 10496 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3_parser.h')
-rw-r--r--libavcodec/ac3_parser.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/ac3_parser.h b/libavcodec/ac3_parser.h
index fb35b975be..c6230341d7 100644
--- a/libavcodec/ac3_parser.h
+++ b/libavcodec/ac3_parser.h
@@ -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