History

rmdec: stricter error check to avoid theoretical unitialized use

Vittorio Giovara committed 12 years ago

Commit be42c0b1 parent 7207dd81 file · +1 −1Browse files

Unified · Split

libavformat/rmdec.c+1−1
@@ -865,7 +865,7 @@ static int rm_read_packet(AVFormatContext *s, AVPacket *pkt) · 864 unmodified lines
865865 st = s->streams[i];
866866 }
867867
868− if(len<0 || s->pb->eof_reached)
868+ if (len <= 0 || s->pb->eof_reached)
869869 return AVERROR(EIO);
870870
871871 res = ff_rm_parse_packet (s, s->pb, st, st->priv_data, len, pkt,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t