# HG changeset patch # User reimar # Date 1215448239 0 # Node ID 771cf9f79fd6378b05caecbe11fe6ef4a070c264 # Parent 45c3d2b2b2fb65f59215d243d2e400015e37ee2d 10l, fix nuv_header for the case when there is no video stream. diff -r 45c3d2b2b2fb -r 771cf9f79fd6 nuv.c --- 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; }