diff options
author | Luca Abeni <lucabe72@email.it> | 2009-12-28 13:41:09 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2009-12-28 13:41:09 +0000 |
commit | d3d1eae659bd5e447ab67e388de0b25cf44678f9 (patch) | |
tree | ab28824ccfb273d7fc1573cd9fe4656ebbf724d6 /libavformat | |
parent | cd7bfe40799778cec54586b8e99bea8a9e44ebf6 (diff) | |
download | ffmpeg-d3d1eae659bd5e447ab67e388de0b25cf44678f9.tar.gz |
Remove a useless local variable.
Originally committed as revision 20946 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtpenc.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c index 9b356c1026..97ce79ffe2 100644 --- a/libavformat/rtpenc.c +++ b/libavformat/rtpenc.c @@ -345,7 +345,6 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt) AVStream *st = s1->streams[0]; int rtcp_bytes; int size= pkt->size; - uint8_t *buf1= pkt->data; dprintf(s1, "%d: write len=%d\n", pkt->stream_index, size); @@ -364,42 +363,42 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt) case CODEC_ID_PCM_ALAW: case CODEC_ID_PCM_U8: case CODEC_ID_PCM_S8: - rtp_send_samples(s1, buf1, size, 1 * st->codec->channels); + rtp_send_samples(s1, pkt->data, size, 1 * st->codec->channels); break; case CODEC_ID_PCM_U16BE: case CODEC_ID_PCM_U16LE: case CODEC_ID_PCM_S16BE: case CODEC_ID_PCM_S16LE: - rtp_send_samples(s1, buf1, size, 2 * st->codec->channels); + rtp_send_samples(s1, pkt->data, size, 2 * st->codec->channels); break; case CODEC_ID_MP2: case CODEC_ID_MP3: - rtp_send_mpegaudio(s1, buf1, size); + rtp_send_mpegaudio(s1, pkt->data, size); break; case CODEC_ID_MPEG1VIDEO: case CODEC_ID_MPEG2VIDEO: - ff_rtp_send_mpegvideo(s1, buf1, size); + ff_rtp_send_mpegvideo(s1, pkt->data, size); break; case CODEC_ID_AAC: - ff_rtp_send_aac(s1, buf1, size); + ff_rtp_send_aac(s1, pkt->data, size); break; case CODEC_ID_AMR_NB: case CODEC_ID_AMR_WB: - ff_rtp_send_amr(s1, buf1, size); + ff_rtp_send_amr(s1, pkt->data, size); break; case CODEC_ID_MPEG2TS: - rtp_send_mpegts_raw(s1, buf1, size); + rtp_send_mpegts_raw(s1, pkt->data, size); break; case CODEC_ID_H264: - ff_rtp_send_h264(s1, buf1, size); + ff_rtp_send_h264(s1, pkt->data, size); break; case CODEC_ID_H263: case CODEC_ID_H263P: - ff_rtp_send_h263(s1, buf1, size); + ff_rtp_send_h263(s1, pkt->data, size); break; default: /* better than nothing : send the codec raw data */ - rtp_send_raw(s1, buf1, size); + rtp_send_raw(s1, pkt->data, size); break; } return 0; |