Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoakim Plate <elupus@ecce.se>2011-09-12 06:08:06 +0400
committerMichael Niedermayer <michaelni@gmx.at>2011-09-12 06:39:13 +0400
commit7e4111cfe2f5d03af8d608757e897145aa252af8 (patch)
tree5f21da22c5cc6637994268660f4d3761941d9ae7 /libavformat/rmdec.c
parentf9e083a156f19094cb6fcd134c1ca4ca899a1a6d (diff)
rmdec: Check return value of more avio_seek calls
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rmdec.c')
-rw-r--r--libavformat/rmdec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index 14880fe755..5e34647ceb 100644
--- 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;