comparison nuv.c @ 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 7a0230981402
children cfa94f80be53
comparison
equal deleted inserted replaced
3546:45c3d2b2b2fb 3547:771cf9f79fd6
177 av_set_pts_info(ast, 32, 1, 1000); 177 av_set_pts_info(ast, 32, 1, 1000);
178 } else 178 } else
179 ctx->a_id = -1; 179 ctx->a_id = -1;
180 180
181 get_codec_data(pb, vst, ast, is_mythtv); 181 get_codec_data(pb, vst, ast, is_mythtv);
182 ctx->rtjpg_video = vst->codec->codec_id == CODEC_ID_NUV; 182 ctx->rtjpg_video = vst && vst->codec->codec_id == CODEC_ID_NUV;
183 return 0; 183 return 0;
184 } 184 }
185 185
186 #define HDRSIZE 12 186 #define HDRSIZE 12
187 187