mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-01 20:42:19 +00:00
Merge remote-tracking branch 'qatar/master'
* qatar/master: sdp: Check that fmt->oformat is non-null before accessing it Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
70937d9708
@ -402,7 +402,7 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c,
|
|||||||
switch (c->codec_id) {
|
switch (c->codec_id) {
|
||||||
case AV_CODEC_ID_H264: {
|
case AV_CODEC_ID_H264: {
|
||||||
int mode = 1;
|
int mode = 1;
|
||||||
if (fmt && fmt->oformat->priv_class &&
|
if (fmt && fmt->oformat && fmt->oformat->priv_class &&
|
||||||
av_opt_flag_is_set(fmt->priv_data, "rtpflags", "h264_mode0"))
|
av_opt_flag_is_set(fmt->priv_data, "rtpflags", "h264_mode0"))
|
||||||
mode = 0;
|
mode = 0;
|
||||||
if (c->extradata_size) {
|
if (c->extradata_size) {
|
||||||
|
Loading…
Reference in New Issue
Block a user