Commit 2a66a580 authored by Martin Storsjö's avatar Martin Storsjö

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: 's avatarMartin Storsjö <martin@martin.st>
parent db5cc75f
...@@ -98,7 +98,7 @@ static int mpa_robust_parse_packet(AVFormatContext *ctx, PayloadContext *data, ...@@ -98,7 +98,7 @@ static int mpa_robust_parse_packet(AVFormatContext *ctx, PayloadContext *data,
pkt->stream_index = st->index; pkt->stream_index = st->index;
memcpy(pkt->data, buf, adu_size); 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) { if (data->split_pos == data->split_buf_size) {
av_freep(&data->split_buf); av_freep(&data->split_buf);
......
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