Commit 35e29c55 authored by reimar's avatar reimar

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14101 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 16d8e9d6
...@@ -179,7 +179,7 @@ static int nuv_header(AVFormatContext *s, AVFormatParameters *ap) { ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment