avformat/rtpdec_mpa_robust: fix commit 96084251e5

Commit 96084251e5 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>
pull/117/head
Gilles Chanteperdrix 10 years ago committed by Michael Niedermayer
parent f27d5bd3d2
commit ebf1f512e9
  1. 2
      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);

Loading…
Cancel
Save