History

avformat/asfdec: Allow packet_obj_size == 0

Fixes Ticket3521

Michael Niedermayer committed 11 years ago

Commit 4ccd2b31 parent be4e1f21 file · +1 −1Browse files

Unified · Split

libavformat/asfdec.c+1−1
@@ -1062,7 +1062,7 @@ static int asf_read_frame_header(AVFormatContext *s, AVIOContext *pb) · 1061 unmodified lines
10621062 int64_t end = avio_tell(pb) + asf->packet_replic_size;
10631063 AVRational aspect;
10641064 asfst->packet_obj_size = avio_rl32(pb);
1065− if (asfst->packet_obj_size >= (1 << 24) || asfst->packet_obj_size <= 0) {
1065+ if (asfst->packet_obj_size >= (1 << 24) || asfst->packet_obj_size < 0) {
10661066 av_log(s, AV_LOG_ERROR, "packet_obj_size %d invalid\n", asfst->packet_obj_size);
10671067 asfst->packet_obj_size = 0;
10681068 return AVERROR_INVALIDDATA;

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