Browse Source

sdp: Fix null pointer dereference with aac and ffserver.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Carl Michael Niedermayer 14 years ago
parent
commit
2cf4bd7751
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/sdp.c

+ 1
- 1
libavformat/sdp.c View File

@@ -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)


Loading…
Cancel
Save