[SCM] libav/experimental: rtpdec: Store the previous return value for mpegts when it was -1, too
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 17:17:16 UTC 2013
The following commit has been merged in the experimental branch:
commit 45658b7414870cfe84bb70e6ec2c6e59b7c95b8b
Author: Martin Storsjö <martin at martin.st>
Date: Fri Oct 8 07:28:17 2010 +0000
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
diff --git a/libavformat/rtpdec.c b/libavformat/rtpdec.c
index 1393067..fed166c 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);
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list