projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
243ac3f
)
rtpdec: Store the previous return value for mpegts when it was -1, too
author
Martin Storsjö
<martin@martin.st>
Fri, 8 Oct 2010 07:28:17 +0000
(07:28 +0000)
committer
Martin Storsjö
<martin@martin.st>
Fri, 8 Oct 2010 07:28:17 +0000
(07:28 +0000)
Originally committed as revision 25403 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/rtpdec.c
patch
|
blob
|
history
diff --git
a/libavformat/rtpdec.c
b/libavformat/rtpdec.c
index
1393067
..
fed166c
100644
(file)
--- 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);