summaryrefslogtreecommitdiffstats
path: root/libavformat/rtpdec.c
diff options
context:
space:
mode:
authorRobert Schlabbach <robert_s@gmx.net>2010-10-08 07:26:42 +0000
committerMartin Storsjö <martin@martin.st>2010-10-08 07:26:42 +0000
commit243ac3fdaa275dcdc774e89370e3bec273f0f6c9 (patch)
treebe8471d9adb1e74d12dee765331671b29f4aa842 /libavformat/rtpdec.c
parent8a451afe7d011c37548340d529e556010d8c1718 (diff)
downloadffmpeg-streaming-243ac3fdaa275dcdc774e89370e3bec273f0f6c9.zip
ffmpeg-streaming-243ac3fdaa275dcdc774e89370e3bec273f0f6c9.tar.gz
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
Diffstat (limited to 'libavformat/rtpdec.c')
-rw-r--r--libavformat/rtpdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index d134ebc..1393067 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -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,
OpenPOWER on IntegriCloud