Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump. Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -51,8 +51,8 @@
|
||||
/* statistics functions */
|
||||
RTPDynamicProtocolHandler *RTPFirstDynamicPayloadHandler= NULL;
|
||||
|
||||
static RTPDynamicProtocolHandler mp4v_es_handler= {"MP4V-ES", CODEC_TYPE_VIDEO, CODEC_ID_MPEG4};
|
||||
static RTPDynamicProtocolHandler mpeg4_generic_handler= {"mpeg4-generic", CODEC_TYPE_AUDIO, CODEC_ID_AAC};
|
||||
static RTPDynamicProtocolHandler mp4v_es_handler= {"MP4V-ES", AVMEDIA_TYPE_VIDEO, CODEC_ID_MPEG4};
|
||||
static RTPDynamicProtocolHandler mpeg4_generic_handler= {"mpeg4-generic", AVMEDIA_TYPE_AUDIO, CODEC_ID_AAC};
|
||||
|
||||
void ff_register_dynamic_payload_handler(RTPDynamicProtocolHandler *handler)
|
||||
{
|
||||
@@ -350,7 +350,7 @@ RTPDemuxContext *rtp_parse_open(AVFormatContext *s1, AVStream *st, URLContext *r
|
||||
st->need_parsing = AVSTREAM_PARSE_FULL;
|
||||
break;
|
||||
default:
|
||||
if (st->codec->codec_type == CODEC_TYPE_AUDIO) {
|
||||
if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
|
||||
av_set_pts_info(st, 32, 1, st->codec->sample_rate);
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user