aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ac3dec.c
diff options
context:
space:
mode:
authorBartlomiej Wolowiec <bartek.wolowiec@gmail.com>2008-03-24 21:25:49 +0000
committerBartlomiej Wolowiec <bartek.wolowiec@gmail.com>2008-03-24 21:25:49 +0000
commit4e6eeaf01968a22748e27590d29f343323cca9c6 (patch)
treeb4c32d09b5b6a3dddf4fd6a917289f7ed7b56b80 /libavcodec/ac3dec.c
parentb4e806b2b9696443954de88e54ea583d705bcd24 (diff)
downloadffmpeg-4e6eeaf01968a22748e27590d29f343323cca9c6.tar.gz
using stream type in eac3 parser
Originally committed as revision 12570 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3dec.c')
-rw-r--r--libavcodec/ac3dec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c
index 75208de33d..79a8606dba 100644
--- a/libavcodec/ac3dec.c
+++ b/libavcodec/ac3dec.c
@@ -1151,6 +1151,9 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data, int *data_size,
case AC3_PARSE_ERROR_FRAME_SIZE:
av_log(avctx, AV_LOG_ERROR, "invalid frame size\n");
break;
+ case AC3_PARSE_ERROR_STREAM_TYPE:
+ av_log(avctx, AV_LOG_ERROR, "invalid stream type\n");
+ break;
default:
av_log(avctx, AV_LOG_ERROR, "invalid header\n");
break;