Commit 2cf4bd77 authored by Carl's avatar Carl Committed by Michael Niedermayer

sdp: Fix null pointer dereference with aac and ffserver.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d3fc335b
......@@ -402,7 +402,7 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c,
payload_type, config ? config : "");
break;
case CODEC_ID_AAC:
if (fmt && fmt->oformat->priv_class &&
if (fmt && fmt->oformat && fmt->oformat->priv_class &&
av_opt_flag_is_set(fmt->priv_data, "rtpflags", "latm")) {
config = latm_context2config(c);
if (!config)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment