1
mirror of https://github.com/mpv-player/mpv synced 2025-01-20 21:07:29 +01:00

dereference muxer->priv only after having checked muxer!=NULL in write_chunk(); closes cid 206

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17819 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2006-03-11 23:38:54 +00:00
parent 86d46b8ec9
commit a8ea2c96c9

View File

@ -327,11 +327,12 @@ static uint32_t calc_pack_hlen(muxer_priv_t *priv, muxer_headers_t *h);
static int add_frame(muxer_headers_t *spriv, uint64_t idur, uint8_t *ptr, int len, uint8_t pt, uint32_t temp_ref);
static muxer_stream_t* mpegfile_new_stream(muxer_t *muxer,int type){
muxer_priv_t *priv = (muxer_priv_t*) muxer->priv;
muxer_priv_t *priv;
muxer_stream_t *s;
muxer_headers_t *spriv;
if (!muxer) return NULL;
priv = (muxer_priv_t*) muxer->priv;
if(muxer->avih.dwStreams>=MUXER_MAX_STREAMS){
mp_msg(MSGT_MUXER, MSGL_ERR, "Too many streams! increase MUXER_MAX_STREAMS !\n");
return NULL;