History

avformat/asfdec: Print packet_obj_size in case it is invalid

Michael Niedermayer committed 11 years ago

Commit be4e1f21 parent ca3b2741 file · +1 −1Browse files

Unified · Split

libavformat/asfdec.c+1−1
@@ -1063,7 +1063,7 @@ static int asf_read_frame_header(AVFormatContext *s, AVIOContext *pb) · 1062 unmodified lines
1063 AVRational aspect;1063 AVRational aspect;
1064 asfst->packet_obj_size = avio_rl32(pb);1064 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) {
1066 av_log(s, AV_LOG_ERROR, "packet_obj_size invalid\n");1066 av_log(s, AV_LOG_ERROR, "packet_obj_size %d invalid\n", asfst->packet_obj_size);
1067 asfst->packet_obj_size = 0;1067 asfst->packet_obj_size = 0;
1068 return AVERROR_INVALIDDATA;1068 return AVERROR_INVALIDDATA;
1069 }1069 }

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