changeset 9237:69779b592b9d libavcodec

flacdec: skip frame when allocated data size is too small
author jbr
date Sun, 22 Mar 2009 21:31:23 +0000
parents 7ec90057127a
children 11a79ab2279d
files flacdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flacdec.c	Sun Mar 22 21:13:10 2009 +0000
+++ b/flacdec.c	Sun Mar 22 21:31:23 2009 +0000
@@ -693,7 +693,7 @@
     if (output_size > alloc_data_size) {
         av_log(s->avctx, AV_LOG_ERROR, "output data size is larger than "
                                        "allocated data size\n");
-        return -1;
+        goto end;
     }
     *data_size = output_size;