changeset 6999:3d84a99ecfa7 libavcodec

return error on frame sync error
author jbr
date Wed, 04 Jun 2008 00:31:20 +0000
parents d32b97ccfd42
children af0fe48cda98
files ac3dec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ac3dec.c	Tue Jun 03 23:34:26 2008 +0000
+++ b/ac3dec.c	Wed Jun 04 00:31:20 2008 +0000
@@ -1158,7 +1158,7 @@
         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;