From 7af26d14acc91163a7bbfb3c13fce2f23e9513fd Mon Sep 17 00:00:00 2001 From: Justin Ruggles Date: Wed, 4 Jun 2008 00:31:20 +0000 Subject: [PATCH] return error on frame sync error Originally committed as revision 13654 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ac3dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/ac3dec.c b/libavcodec/ac3dec.c index d3e1bc117..29955cc64 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; -- 2.11.0