diff options
author | Martin Storsjö <martin@martin.st> | 2015-03-02 14:46:30 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-03-04 09:34:14 +0200 |
commit | 2a66a580678dd9401f4d95e01e0958ca51864b6f (patch) | |
tree | 4701287a018402ec74b91e12bae90b7f214a44f1 /libavformat | |
parent | db5cc75f8b5620e7cd2d05762c3b087ab16d8c24 (diff) | |
download | ffmpeg-2a66a580678dd9401f4d95e01e0958ca51864b6f.tar.gz |
rtpdec_mpa_robust: Fix incrementing split_pos
This fixes an oversight in 96084251, in a refactoring done on top
of Gilles' original patch.
Pointed out by Gilles Chanteperdrix.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtpdec_mpa_robust.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpdec_mpa_robust.c b/libavformat/rtpdec_mpa_robust.c index 028be09c83..022cfec313 100644 --- a/libavformat/rtpdec_mpa_robust.c +++ b/libavformat/rtpdec_mpa_robust.c @@ -98,7 +98,7 @@ static int mpa_robust_parse_packet(AVFormatContext *ctx, PayloadContext *data, pkt->stream_index = st->index; memcpy(pkt->data, buf, adu_size); - data->split_pos += adu_size; + data->split_pos += header_size + adu_size; if (data->split_pos == data->split_buf_size) { av_freep(&data->split_buf); |