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:
88f908f
)
sol: return error if av_get_packet() fails.
author
Justin Ruggles
<justin.ruggles@gmail.com>
Sat, 24 Sep 2011 01:43:43 +0000
(21:43 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Sun, 25 Sep 2011 20:53:49 +0000
(16:53 -0400)
This prevents sending a packet with data=NULL size=AVERROR_EOF.
libavformat/sol.c
patch
|
blob
|
history
diff --git
a/libavformat/sol.c
b/libavformat/sol.c
index
6ca8d1c
..
920582f
100644
(file)
--- a/
libavformat/sol.c
+++ b/
libavformat/sol.c
@@
-132,6
+132,8
@@
static int sol_read_packet(AVFormatContext *s,
if (s->pb->eof_reached)
return AVERROR(EIO);
ret= av_get_packet(s->pb, pkt, MAX_SIZE);
+ if (ret < 0)
+ return ret;
pkt->stream_index = 0;
/* note: we need to modify the packet size here to handle the last