summaryrefslogtreecommitdiff
path: root/libavformat/rtp.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-05-30 16:42:36 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-05-30 16:42:36 +0000
commitd3655fad7c0899b01a9c2e029d2e7f9f30800327 (patch)
tree87eac2a02e4e0945a93feeae37f9735235ec7d49 /libavformat/rtp.c
parentde312e51d0797f679ede9d1aa6cfd0fa063e0337 (diff)
trivial pre-C99 fix for rtp.c by (Wolfram Gloger: wmglo, dent med uni-muenchen de)
Originally committed as revision 4321 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtp.c')
-rw-r--r--libavformat/rtp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtp.c b/libavformat/rtp.c
index d78a777bc6..63236f00c6 100644
--- a/libavformat/rtp.c
+++ b/libavformat/rtp.c
@@ -482,6 +482,7 @@ int rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt,
case CODEC_ID_MPEG4AAC:
if (rtp_parse_mp4_au(s, buf))
return -1;
+ {
rtp_payload_data_t *infos = s->rtp_payload_data;
if (infos == NULL)
return -1;
@@ -494,6 +495,7 @@ int rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt,
memcpy(pkt->data, buf, infos->au_headers[0].size);
buf += infos->au_headers[0].size;
len -= infos->au_headers[0].size;
+ }
s->read_buf_size = len;
s->buf_ptr = (char *)buf;
pkt->stream_index = s->st->index;