Skip to content
Snippets Groups Projects
Commit a925f723 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

rtp: Don't read priv_data unless it is allocated


This makes all users of rtpenc_chain (rtsp muxer, sapenc, mov
rtp hinting) work again, broken since 8034130e.

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 1eaff98c
No related branches found
No related tags found
No related merge requests found
......@@ -97,7 +97,7 @@ int ff_rtp_get_payload_type(AVFormatContext *fmt,
AVOutputFormat *ofmt = fmt ? fmt->oformat : NULL;
/* Was the payload type already specified for the RTP muxer? */
if (ofmt && ofmt->priv_class) {
if (ofmt && ofmt->priv_class && fmt->priv_data) {
int64_t payload_type;
if (av_opt_get_int(fmt->priv_data, "payload_type", 0, &payload_type) >= 0 &&
payload_type >= 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment