diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2008-06-04 00:31:20 +0000 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2008-06-04 00:31:20 +0000 |
commit | 7af26d14acc91163a7bbfb3c13fce2f23e9513fd (patch) | |
tree | 952f50facbc23d3577bc27f57400d82f9a1c4025 | |
parent | 31bc6b454994d7b7a99a30876c0427c07c5885e3 (diff) | |
download | ffmpeg-7af26d14acc91163a7bbfb3c13fce2f23e9513fd.tar.gz |
return error on frame sync error
Originally committed as revision 13654 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/ac3dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index d3e1bc1177..29955cc646 100644 --- a/libavcodec/ac3dec.c +++ b/libavcodec/ac3dec.c @@ -1158,7 +1158,7 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data, int *data_size, switch(err) { case AC3_PARSE_ERROR_SYNC: av_log(avctx, AV_LOG_ERROR, "frame sync error\n"); - break; + return -1; case AC3_PARSE_ERROR_BSID: av_log(avctx, AV_LOG_ERROR, "invalid bitstream id\n"); break; |