Revision 01f4895c libavformat/rtsp.c

View differences:

libavformat/rtsp.c
282 282
    int i;
283 283

  
284 284
    RTSPStream *rtsp_st = st->priv_data;
285
    AVCodecContext *codec = &st->codec;
285
    AVCodecContext *codec = st->codec;
286 286
    rtp_payload_data_t *rtp_payload_data = &rtsp_st->rtp_payload_data;
287 287

  
288 288
    /* loop on each attribute */
......
405 405
                return;
406 406
            st->priv_data = rtsp_st;
407 407
            rtsp_st->stream_index = st->index;
408
            st->codec.codec_type = codec_type;
408
            st->codec->codec_type = codec_type;
409 409
            if (rtsp_st->sdp_payload_type < RTP_PT_PRIVATE) {
410 410
                /* if standard payload type, we can find the codec right now */
411
                rtp_get_codec_info(&st->codec, rtsp_st->sdp_payload_type);
411
                rtp_get_codec_info(st->codec, rtsp_st->sdp_payload_type);
412 412
            }
413 413
        }
414 414
        /* put a default control url */
......
438 438
                st = s->streams[i];
439 439
                rtsp_st = st->priv_data;
440 440
                if (rtsp_st->sdp_payload_type == payload_type) {
441
                    sdp_parse_rtpmap(&st->codec, payload_type, p);
441
                    sdp_parse_rtpmap(st->codec, payload_type, p);
442 442
                }
443 443
            }
444 444
        } else if (strstart(p, "fmtp:", &p)) {

Also available in: Unified diff