Browse Source

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

Originally committed as revision 14101 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Reimar Döffinger 17 years ago
parent
commit
00496302d6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/nuv.c

+ 1
- 1
libavformat/nuv.c View File

@@ -179,7 +179,7 @@ static int nuv_header(AVFormatContext *s, AVFormatParameters *ap) {
ctx->a_id = -1; ctx->a_id = -1;


get_codec_data(pb, vst, ast, is_mythtv); 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; return 0;
} }




Loading…
Cancel
Save