1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

sdp: Fix null pointer dereference with aac and ffserver.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Carl
2011-11-28 04:22:11 +01:00
committed by Michael Niedermayer
parent d3fc335bac
commit 2cf4bd7751

View File

@@ -402,7 +402,7 @@ static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c,
payload_type, config ? config : ""); payload_type, config ? config : "");
break; break;
case CODEC_ID_AAC: 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")) { av_opt_flag_is_set(fmt->priv_data, "rtpflags", "latm")) {
config = latm_context2config(c); config = latm_context2config(c);
if (!config) if (!config)