mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-28 17:51:05 +00:00
avformat/vividas: check if viv->sb_pb is not NULL
This commit is contained in:
parent
e9909fe194
commit
d62cb29716
@ -582,6 +582,8 @@ static int viv_read_packet(AVFormatContext *s,
|
||||
int64_t off;
|
||||
int ret;
|
||||
|
||||
if (!viv->sb_pb)
|
||||
return AVERROR(EIO);
|
||||
if (avio_feof(viv->sb_pb))
|
||||
return AVERROR_EOF;
|
||||
|
||||
@ -615,6 +617,8 @@ static int viv_read_packet(AVFormatContext *s,
|
||||
}
|
||||
|
||||
pb = viv->sb_pb;
|
||||
if (!pb)
|
||||
return AVERROR(EIO);
|
||||
off = avio_tell(pb);
|
||||
off += viv->sb_entries[viv->current_sb_entry].size;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user