aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-10-08 07:28:17 +0000
committerMartin Storsjö <martin@martin.st>2010-10-08 07:28:17 +0000
commit45658b7414870cfe84bb70e6ec2c6e59b7c95b8b (patch)
tree2d4af45f73a84fbfe7367de4113e60e8b9c24392
parent243ac3fdaa275dcdc774e89370e3bec273f0f6c9 (diff)
downloadffmpeg-45658b7414870cfe84bb70e6ec2c6e59b7c95b8b.tar.gz
rtpdec: Store the previous return value for mpegts when it was -1, too
Originally committed as revision 25403 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/rtpdec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index 1393067b59..fed166cf62 100644
--- a/libavformat/rtpdec.c
+++ b/libavformat/rtpdec.c
@@ -471,8 +471,10 @@ static int rtp_parse_packet_internal(RTPDemuxContext *s, AVPacket *pkt,
if (!st) {
/* specific MPEG2TS demux support */
ret = ff_mpegts_parse_packet(s->ts, pkt, buf, len);
- if (ret < 0)
+ if (ret < 0) {
+ s->prev_ret = -1;
return -1;
+ }
if (ret < len) {
s->read_buf_size = len - ret;
memcpy(s->buf, buf + ret, s->read_buf_size);