aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl <cmastrange3@gatech.edu>2011-11-28 04:22:11 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-28 04:29:47 +0100
commit2cf4bd7751c1920c840a3afc6dce39535def47f2 (patch)
tree0d811af1c77f89cd3c0fb60ded14f9b742a67a87
parentd3fc335bac6a5d911a83e69be7b707540e54de13 (diff)
downloadffmpeg-2cf4bd7751c1920c840a3afc6dce39535def47f2.tar.gz
sdp: Fix null pointer dereference with aac and ffserver.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/sdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 37eee26485..13c5ba6629 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -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)