OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9e083a
)
rmdec: Check return value of more avio_seek calls
author
Joakim Plate
<elupus@ecce.se>
Mon, 12 Sep 2011 02:08:06 +0000
(
04:08
+0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 12 Sep 2011 02:39:13 +0000
(
04:39
+0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/rmdec.c
patch
|
blob
|
history
diff --git
a/libavformat/rmdec.c
b/libavformat/rmdec.c
index
14880fe
..
5e34647
100644
(file)
--- a/
libavformat/rmdec.c
+++ b/
libavformat/rmdec.c
@@
-919,7
+919,9
@@
static int64_t rm_read_dts(AVFormatContext *s, int stream_index,
if(rm->old_format)
return AV_NOPTS_VALUE;
- avio_seek(s->pb, pos, SEEK_SET);
+ if (avio_seek(s->pb, pos, SEEK_SET) < 0)
+ return AV_NOPTS_VALUE;
+
rm->remaining_len=0;
for(;;){
int seq=1;