Commit 91683d3a authored by michael's avatar michael

trivial pre-C99 fix for rtp.c by (Wolfram Gloger: wmglo, dent med uni-muenchen de)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4321 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e8084ad4
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment