changeset 4395:b0bfea78ca13 libavcodec

crash fix by Carl Eugen Hoyos cehoyos ag.or at
author michael
date Wed, 24 Jan 2007 11:20:01 +0000
parents 182949fbc53e
children 8e78248586b0
files svq3.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/svq3.c	Wed Jan 24 11:01:17 2007 +0000
+++ b/svq3.c	Wed Jan 24 11:20:01 2007 +0000
@@ -910,7 +910,8 @@
       s->next_p_frame_damaged = 0;
   }
 
-  frame_start (h);
+  if (frame_start (h) < 0)
+    return -1;
 
   if (s->pict_type == B_TYPE) {
     h->frame_num_offset = (h->slice_num - h->prev_frame_num);