changeset 1788:7b13ac4995a9 libavcodec

segfault fix
author michael
date Fri, 06 Feb 2004 21:07:17 +0000
parents 752b51a3c8ed
children acda5fdfd6e7
files ra144.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ra144.c	Fri Feb 06 17:51:58 2004 +0000
+++ b/ra144.c	Fri Feb 06 21:07:17 2004 +0000
@@ -436,6 +436,9 @@
   int16_t *data = vdata;
   Real144_internal *glob=avctx->priv_data;
 
+  if(buf_size==0)
+      return 0;
+  
   datao = data;
   unpack_input(buf,glob->unpacked);