summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Plate <[email protected]>2011-09-12 04:08:06 +0200
committerMichael Niedermayer <[email protected]>2011-09-21 18:03:16 +0200
commit8449cebc90dcef1fda4c1fc83d8ce2651b029349 (patch)
treef78081794e52dc1426bc131e3531bd141a721910
parent4a721b18edfdea44643ff9bb6ed80ee176e71f1b (diff)
rmdec: Check return value of more avio_seek calls
Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit 7e4111cfe2f5d03af8d608757e897145aa252af8)
-rw-r--r--libavformat/rmdec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index c2eee815c2..b7c57af93a 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -905,7 +905,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;