changeset 2086:13811ac6ddc7 libavcodec

segfault fix
author michael
date Sat, 19 Jun 2004 00:10:21 +0000
parents 51f678a23325
children a4d3699c6636
files svq3.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/svq3.c	Fri Jun 18 13:11:15 2004 +0000
+++ b/svq3.c	Sat Jun 19 00:10:21 2004 +0000
@@ -453,8 +453,9 @@
 
       mb_type = MB_TYPE_SKIP;
     } else {
-      svq3_mc_dir (h, s->next_picture.mb_type[mb_xy], PREDICT_MODE, 0, 0);
-      svq3_mc_dir (h, s->next_picture.mb_type[mb_xy], PREDICT_MODE, 1, 1);
+      mb_type= FFMIN(s->next_picture.mb_type[mb_xy], 0);
+      svq3_mc_dir (h, mb_type, PREDICT_MODE, 0, 0);
+      svq3_mc_dir (h, mb_type, PREDICT_MODE, 1, 1);
 
       mb_type = MB_TYPE_16x16;
     }