mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-12 10:15:22 +00:00
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: Martin Storsjö <martin@martin.st>
(cherry picked from commit 932117171f
)
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
62de693a17
commit
348cd84fc8
@ -107,7 +107,7 @@ int ff_rtp_get_payload_type(AVFormatContext *fmt,
|
||||
/* static payload type */
|
||||
for (i = 0; AVRtpPayloadTypes[i].pt >= 0; ++i)
|
||||
if (AVRtpPayloadTypes[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 ||
|
||||
!av_opt_flag_is_set(fmt->priv_data, "rtpflags", "rfc2190")))
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user