return error on frame sync error

Originally committed as revision 13654 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Justin Ruggles 2008-06-04 00:31:20 +00:00
parent 31bc6b4549
commit 7af26d14ac
1 changed files with 1 additions and 1 deletions

View File

@ -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;