Commit 7e4111cf authored by Joakim Plate's avatar Joakim Plate Committed by Michael Niedermayer

rmdec: Check return value of more avio_seek calls

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f9e083a1
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment