rmdec: Check return value of more avio_seek calls
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 7e4111cfe2
)
This commit is contained in:

committed by
Michael Niedermayer

parent
4a721b18ed
commit
8449cebc90
@@ -905,7 +905,9 @@ static int64_t rm_read_dts(AVFormatContext *s, int stream_index,
|
|||||||
if(rm->old_format)
|
if(rm->old_format)
|
||||||
return AV_NOPTS_VALUE;
|
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;
|
rm->remaining_len=0;
|
||||||
for(;;){
|
for(;;){
|
||||||
int seq=1;
|
int seq=1;
|
||||||
|
Reference in New Issue
Block a user