Revision 72415b2a libavformat/rtpdec.c

View differences:

libavformat/rtpdec.c
51 51
/* statistics functions */
52 52
RTPDynamicProtocolHandler *RTPFirstDynamicPayloadHandler= NULL;
53 53

  
54
static RTPDynamicProtocolHandler mp4v_es_handler= {"MP4V-ES", CODEC_TYPE_VIDEO, CODEC_ID_MPEG4};
55
static RTPDynamicProtocolHandler mpeg4_generic_handler= {"mpeg4-generic", CODEC_TYPE_AUDIO, CODEC_ID_AAC};
54
static RTPDynamicProtocolHandler mp4v_es_handler= {"MP4V-ES", AVMEDIA_TYPE_VIDEO, CODEC_ID_MPEG4};
55
static RTPDynamicProtocolHandler mpeg4_generic_handler= {"mpeg4-generic", AVMEDIA_TYPE_AUDIO, CODEC_ID_AAC};
56 56

  
57 57
void ff_register_dynamic_payload_handler(RTPDynamicProtocolHandler *handler)
58 58
{
......
350 350
            st->need_parsing = AVSTREAM_PARSE_FULL;
351 351
            break;
352 352
        default:
353
            if (st->codec->codec_type == CODEC_TYPE_AUDIO) {
353
            if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
354 354
                av_set_pts_info(st, 32, 1, st->codec->sample_rate);
355 355
            }
356 356
            break;

Also available in: Unified diff