Remove all uses of deprecated AVOptions API.

This commit is contained in:
Anton Khirnov
2011-10-03 21:10:06 +02:00
parent 8c5dcaad13
commit 3b3ea34655
7 changed files with 35 additions and 34 deletions

View File

@@ -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 */