diff libmpcodecs/vd_fli.c @ 5124:3dcbf67c0de0

handle error from mpcodecs_config_vo()
author arpi
date Sat, 16 Mar 2002 01:10:31 +0000
parents f412b0110524
children 28677d779205
line wrap: on
line diff
--- a/libmpcodecs/vd_fli.c	Fri Mar 15 23:53:58 2002 +0000
+++ b/libmpcodecs/vd_fli.c	Sat Mar 16 01:10:31 2002 +0000
@@ -35,7 +35,7 @@
 
 // init driver
 static int init(sh_video_t *sh){
-    mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_BGR24);
+    if(!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_BGR24)) return 0;
     sh->context = init_fli_decoder(sh->disp_w, sh->disp_h);
     return 1;
 }