Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
| ... | ... |
@@ -919,7 +919,9 @@ static int64_t rm_read_dts(AVFormatContext *s, int stream_index, |
| 919 | 919 |
if(rm->old_format) |
| 920 | 920 |
return AV_NOPTS_VALUE; |
| 921 | 921 |
|
| 922 |
- avio_seek(s->pb, pos, SEEK_SET); |
|
| 922 |
+ if (avio_seek(s->pb, pos, SEEK_SET) < 0) |
|
| 923 |
+ return AV_NOPTS_VALUE; |
|
| 924 |
+ |
|
| 923 | 925 |
rm->remaining_len=0; |
| 924 | 926 |
for(;;){
|
| 925 | 927 |
int seq=1; |