Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > 9bb36572f0d613de9b69fc55ec62d178 > files > 10

mplayer-1.1.1-12.r37337.3.mga5.tainted.src.rpm

Index: libmpcodecs/vd_ffmpeg.c
===================================================================
--- libmpcodecs/vd_ffmpeg.c	(Revision 29857)
+++ libmpcodecs/vd_ffmpeg.c	(Arbeitskopie)
@@ -118,7 +118,10 @@
 // to set/get/query special features/parameters
 static int control(sh_video_t *sh, int cmd, void *arg, ...){
     vd_ffmpeg_ctx *ctx = sh->context;
-    AVCodecContext *avctx = ctx->avctx;
+    AVCodecContext *avctx;
+    
+    if (!ctx) return CONTROL_UNKNOWN;
+    avctx = ctx->avctx;
     switch(cmd){
     case VDCTRL_QUERY_FORMAT:
     {