[FFmpeg-cvslog] r14101 - trunk/libavformat/nuv.c

reimar subversion
Mon Jul 7 18:30:39 CEST 2008


Author: reimar
Date: Mon Jul  7 18:30:39 2008
New Revision: 14101

Log:
10l, fix nuv_header for the case when there is no video stream.


Modified:
   trunk/libavformat/nuv.c

Modified: trunk/libavformat/nuv.c
==============================================================================
--- trunk/libavformat/nuv.c	(original)
+++ trunk/libavformat/nuv.c	Mon Jul  7 18:30:39 2008
@@ -179,7 +179,7 @@ static int nuv_header(AVFormatContext *s
         ctx->a_id = -1;
 
     get_codec_data(pb, vst, ast, is_mythtv);
-    ctx->rtjpg_video = vst->codec->codec_id == CODEC_ID_NUV;
+    ctx->rtjpg_video = vst && vst->codec->codec_id == CODEC_ID_NUV;
     return 0;
 }
 




More information about the ffmpeg-cvslog mailing list