Browse Source

rmdec: Check return value of more avio_seek calls

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Joakim Plate Michael Niedermayer 14 years ago
parent
commit
7e4111cfe2
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavformat/rmdec.c

+ 3
- 1
libavformat/rmdec.c View File

@@ -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;


Loading…
Cancel
Save