mirror of https://github.com/FFmpeg/FFmpeg.git
The function avformat_new_stream() returns a NULL pointer on failure. However, in function rtp_mpegts_write_header(), its return value is not validated before it is dereferenced. Check the return value against NULL to avoid potential NULL dereference. Signed-off-by: Pan Bian <bianpan2016@163.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>pull/272/head
parent
eb86f72fca
commit
5b4baf1506
1 changed files with 4 additions and 0 deletions
Loading…
Reference in new issue