[FFmpeg-cvslog] r20944 - trunk/libavformat/rtpenc.c

lucabe subversion
Mon Dec 28 14:19:55 CET 2009


Author: lucabe
Date: Mon Dec 28 14:19:54 2009
New Revision: 20944

Log:
Remove an unneeded local variable.

Modified:
   trunk/libavformat/rtpenc.c

Modified: trunk/libavformat/rtpenc.c
==============================================================================
--- trunk/libavformat/rtpenc.c	Mon Dec 28 13:01:49 2009	(r20943)
+++ trunk/libavformat/rtpenc.c	Mon Dec 28 14:19:54 2009	(r20944)
@@ -71,7 +71,7 @@ static int is_supported(enum CodecID id)
 static int rtp_write_header(AVFormatContext *s1)
 {
     RTPMuxContext *s = s1->priv_data;
-    int payload_type, max_packet_size, n;
+    int max_packet_size, n;
     AVStream *st;
 
     if (s1->nb_streams != 1)
@@ -83,10 +83,9 @@ static int rtp_write_header(AVFormatCont
         return -1;
     }
 
-    payload_type = ff_rtp_get_payload_type(st->codec);
-    if (payload_type < 0)
-        payload_type = RTP_PT_PRIVATE + (st->codec->codec_type == CODEC_TYPE_AUDIO);
-    s->payload_type = payload_type;
+    s->payload_type = ff_rtp_get_payload_type(st->codec);
+    if (s->payload_type < 0)
+        s->payload_type = RTP_PT_PRIVATE + (st->codec->codec_type == CODEC_TYPE_AUDIO);
 
 // following 2 FIXMEs could be set based on the current time, there is normally no info leak, as RTP will likely be transmitted immediately
     s->base_timestamp = 0; /* FIXME: was random(), what should this be? */



More information about the ffmpeg-cvslog mailing list