diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-10-03 23:10:06 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-10-12 18:51:16 +0400 |
commit | 3b3ea34655db02d9cd9ea1a4122e920a7fdec602 (patch) | |
tree | 3b4c7cfd6d339a3357e2b9f22f3740917a387aff /libavformat/rtp.c | |
parent | 8c5dcaad13a54d90f25e8bbb54efe2a1afd5144e (diff) |
Remove all uses of deprecated AVOptions API.
Diffstat (limited to 'libavformat/rtp.c')
-rw-r--r-- | libavformat/rtp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/rtp.c b/libavformat/rtp.c index bb4bc17d3f..4be845a06c 100644 --- a/libavformat/rtp.c +++ b/libavformat/rtp.c @@ -97,9 +97,9 @@ int ff_rtp_get_payload_type(AVFormatContext *fmt, AVCodecContext *codec) /* Was the payload type already specified for the RTP muxer? */ if (ofmt && ofmt->priv_class) { - int payload_type = av_get_int(fmt->priv_data, "payload_type", NULL); - if (payload_type >= 0) - return payload_type; + int64_t payload_type; + if (av_opt_get_int(fmt->priv_data, "payload_type", 0, &payload_type) >= 0) + return (int)payload_type; } /* static payload type */ |