diff rtsp.c @ 820:feca73904e67 libavformat

changing AVCodecContext codec -> *codec in AVStream so additions to AVCodecContext dont randomize AVStream and break binary compatibility
author michael
date Sun, 17 Jul 2005 22:24:36 +0000
parents 820863425158
children da1d5db0ce5c
line wrap: on
line diff
--- a/rtsp.c	Sun Jul 17 00:28:12 2005 +0000
+++ b/rtsp.c	Sun Jul 17 22:24:36 2005 +0000
@@ -282,7 +282,7 @@
     int i;
 
     RTSPStream *rtsp_st = st->priv_data;
-    AVCodecContext *codec = &st->codec;
+    AVCodecContext *codec = st->codec;
     rtp_payload_data_t *rtp_payload_data = &rtsp_st->rtp_payload_data;
 
     /* loop on each attribute */
@@ -405,10 +405,10 @@
                 return;
             st->priv_data = rtsp_st;
             rtsp_st->stream_index = st->index;
-            st->codec.codec_type = codec_type;
+            st->codec->codec_type = codec_type;
             if (rtsp_st->sdp_payload_type < RTP_PT_PRIVATE) {
                 /* if standard payload type, we can find the codec right now */
-                rtp_get_codec_info(&st->codec, rtsp_st->sdp_payload_type);
+                rtp_get_codec_info(st->codec, rtsp_st->sdp_payload_type);
             }
         }
         /* put a default control url */
@@ -438,7 +438,7 @@
                 st = s->streams[i];
                 rtsp_st = st->priv_data;
                 if (rtsp_st->sdp_payload_type == payload_type) {
-                    sdp_parse_rtpmap(&st->codec, payload_type, p);
+                    sdp_parse_rtpmap(st->codec, payload_type, p);
                 }
             }
         } else if (strstart(p, "fmtp:", &p)) {