Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > by-pkgid > d83c13880f906b8c53a9598014c5e5c3 > files > 6

mplayer-1.0-1.rc4.0.r32675.1mdv2009.1.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:
     {