Commit 93211717 authored by Martin Storsjö's avatar Martin Storsjö

rtp: Make sure the output format pointer is set

Not sure if this actually happens, but we do the same check when
checking payload_type further above in the function, so it might
be needed.
Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 57ed8deb
...@@ -103,7 +103,7 @@ int ff_rtp_get_payload_type(AVFormatContext *fmt, ...@@ -103,7 +103,7 @@ int ff_rtp_get_payload_type(AVFormatContext *fmt,
/* static payload type */ /* static payload type */
for (i = 0; rtp_payload_types[i].pt >= 0; ++i) for (i = 0; rtp_payload_types[i].pt >= 0; ++i)
if (rtp_payload_types[i].codec_id == codec->codec_id) { if (rtp_payload_types[i].codec_id == codec->codec_id) {
if (codec->codec_id == AV_CODEC_ID_H263 && (!fmt || if (codec->codec_id == AV_CODEC_ID_H263 && (!fmt || !fmt->oformat ||
!fmt->oformat->priv_class || !fmt->priv_data || !fmt->oformat->priv_class || !fmt->priv_data ||
!av_opt_flag_is_set(fmt->priv_data, "rtpflags", "rfc2190"))) !av_opt_flag_is_set(fmt->priv_data, "rtpflags", "rfc2190")))
continue; continue;
......
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