Browse Source

rtpdec: Keep track of the previous return value from rtp_parse_packet_internal for mpegts packets

Patch by Robert Schlabbach, robert_s at gmx dot net

Originally committed as revision 25402 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/n0.8
Robert Schlabbach Martin Storsjö 15 years ago
parent
commit
243ac3fdaa
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/rtpdec.c

+ 2
- 0
libavformat/rtpdec.c View File

@@ -477,8 +477,10 @@ static int rtp_parse_packet_internal(RTPDemuxContext *s, AVPacket *pkt,
s->read_buf_size = len - ret;
memcpy(s->buf, buf + ret, s->read_buf_size);
s->read_buf_index = 0;
s->prev_ret = 1;
return 1;
}
s->prev_ret = 0;
return 0;
} else if (s->parse_packet) {
rv = s->parse_packet(s->ic, s->dynamic_protocol_context,


Loading…
Cancel
Save