forked from FFmpeg/FFmpeg
10l, fix memleak, forgot to free mp4_dec_config_descr
Originally committed as revision 25807 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
798c6facb7
commit
175272cb07
1 changed files with 5 additions and 2 deletions
|
@ -956,7 +956,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
|
||||||
}
|
}
|
||||||
p += program_info_length;
|
p += program_info_length;
|
||||||
if (p >= p_end)
|
if (p >= p_end)
|
||||||
return;
|
goto out;
|
||||||
|
|
||||||
// stop parsing after pmt, we found header
|
// stop parsing after pmt, we found header
|
||||||
if (!ts->stream->nb_streams)
|
if (!ts->stream->nb_streams)
|
||||||
|
@ -983,7 +983,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!st)
|
if (!st)
|
||||||
return;
|
goto out;
|
||||||
|
|
||||||
if (!pes->stream_type)
|
if (!pes->stream_type)
|
||||||
mpegts_set_stream_info(st, pes, stream_type, prog_reg_desc);
|
mpegts_set_stream_info(st, pes, stream_type, prog_reg_desc);
|
||||||
|
@ -1082,8 +1082,11 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
|
||||||
}
|
}
|
||||||
p = desc_list_end;
|
p = desc_list_end;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* all parameters are there */
|
/* all parameters are there */
|
||||||
mpegts_close_filter(ts, filter);
|
mpegts_close_filter(ts, filter);
|
||||||
|
out:
|
||||||
|
av_free(mp4_dec_config_descr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void pat_cb(MpegTSFilter *filter, const uint8_t *section, int section_len)
|
static void pat_cb(MpegTSFilter *filter, const uint8_t *section, int section_len)
|
||||||
|
|
Loading…
Add table
Reference in a new issue