diff options
author | Martin Storsjö <martin@martin.st> | 2015-02-26 13:37:56 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-02-28 22:54:22 +0200 |
commit | d4c7fc02f9f59e721e76debf4a595df529707545 (patch) | |
tree | 759f2951d0fc7be28f4b7a49fac1a71d7bdb35e8 /libavformat/rtpenc.c | |
parent | f8c01257f93ceda3e03bc4e540a51022d1e2bff2 (diff) | |
download | ffmpeg-d4c7fc02f9f59e721e76debf4a595df529707545.tar.gz |
rtpenc: Skip redundant initialization
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpenc.c')
-rw-r--r-- | libavformat/rtpenc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libavformat/rtpenc.c b/libavformat/rtpenc.c index 9a68c6d698..5f1fc84547 100644 --- a/libavformat/rtpenc.c +++ b/libavformat/rtpenc.c @@ -196,7 +196,6 @@ static int rtp_write_header(AVFormatContext *s1) if (n < 1) n = 1; s->max_payload_size = n * TS_PACKET_SIZE; - s->buf_ptr = s->buf; break; case AV_CODEC_ID_H261: if (s1->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL) { @@ -229,7 +228,6 @@ static int rtp_write_header(AVFormatContext *s1) if (!s->max_frames_per_packet) s->max_frames_per_packet = 15; s->max_frames_per_packet = av_clip(s->max_frames_per_packet, 1, 15); - s->num_frames = 0; break; case AV_CODEC_ID_ADPCM_G722: /* Due to a historical error, the clock rate for G722 in RTP is @@ -273,10 +271,8 @@ static int rtp_write_header(AVFormatContext *s1) av_log(s1, AV_LOG_ERROR, "Only mono is supported\n"); goto fail; } - s->num_frames = 0; break; case AV_CODEC_ID_AAC: - s->num_frames = 0; if (!s->max_frames_per_packet) s->max_frames_per_packet = 5; break; |