aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/nuv.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-07-07 16:30:39 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2008-07-07 16:30:39 +0000
commit00496302d67141e4b4ff2349eeaf7e40b05c13a4 (patch)
tree1add0ab5d0edd13ae00679593ecf42d56b0bdd7d /libavformat/nuv.c
parent76d3242835d31020fdfd9d665dc8d031840e8c83 (diff)
downloadffmpeg-00496302d67141e4b4ff2349eeaf7e40b05c13a4.tar.gz
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
Diffstat (limited to 'libavformat/nuv.c')
-rw-r--r--libavformat/nuv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nuv.c b/libavformat/nuv.c
index 74393afaa7..995775dc39 100644
--- a/libavformat/nuv.c
+++ b/libavformat/nuv.c
@@ -179,7 +179,7 @@ static int nuv_header(AVFormatContext *s, AVFormatParameters *ap) {
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;
}