diff options
author | Luca Abeni <lucabe72@email.it> | 2009-12-28 13:19:54 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2009-12-28 13:19:54 +0000 |
commit | b3fbe02c868ab2f545c9153037fec3f81c82ca88 (patch) | |
tree | 21cb6bbbee55272b1a906c572d438169d27a0732 /libavformat | |
parent | c887b30d792a760160ce787e2523e3751d6d02ae (diff) | |
download | ffmpeg-b3fbe02c868ab2f545c9153037fec3f81c82ca88.tar.gz |
Remove an unneeded local variable.
Originally committed as revision 20944 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtpenc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c index 91b9c05f33..e522b1a83d 100644 --- a/libavformat/rtpenc.c +++ b/libavformat/rtpenc.c @@ -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(AVFormatContext *s1) 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? */ |