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
865 st = s->streams[i];865 st = s->streams[i];
866 }866 }
867 867
868 if(len<0 || s->pb->eof_reached)868 if (len <= 0 || s->pb->eof_reached)
869 return AVERROR(EIO);869 return AVERROR(EIO);
870 870
871 res = ff_rm_parse_packet (s, s->pb, st, st->priv_data, len, pkt,871 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