diff options
author | Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> | 2015-03-02 11:00:16 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-02 11:58:42 +0100 |
commit | ebf1f512e9916040dd96fa9f789ed4be5a39c349 (patch) | |
tree | b961d1c96d9554323eab66349509ccbc85bcbcfa /libavformat | |
parent | f27d5bd3d2c675ae919c97cc410b0e660d0753f2 (diff) | |
download | ffmpeg-ebf1f512e9916040dd96fa9f789ed4be5a39c349.tar.gz |
avformat/rtpdec_mpa_robust: fix commit 96084251e57d1738fde02a2b0d37ca609d9efd71
Commit 96084251e57d1738fde02a2b0d37ca609d9efd71 introduced a change in
the parser implementation which broke it. Restore the original
implementation.
Signed-off-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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 776e245e25..2439f9ed98 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 = (buf - data->split_buf) + adu_size; if (data->split_pos == data->split_buf_size) { av_freep(&data->split_buf); |