changeset 3547:771cf9f79fd6 libavformat

10l, fix nuv_header for the case when there is no video stream.
author reimar
date Mon, 07 Jul 2008 16:30:39 +0000
parents 45c3d2b2b2fb
children 57647a42c85f
files nuv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/nuv.c	Mon Jul 07 11:11:08 2008 +0000
+++ b/nuv.c	Mon Jul 07 16:30:39 2008 +0000
@@ -179,7 +179,7 @@
         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;
 }