Browse Source

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>
tags/n2.6
Martin Storsjö 10 years ago
parent
commit
2a66a58067
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/rtpdec_mpa_robust.c

+ 1
- 1
libavformat/rtpdec_mpa_robust.c View File

@@ -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);


Loading…
Cancel
Save