History

avformat/dhav: Don't truncate return value of avio_skip()

Fixes demuxing files bigger than INT_MAX.

Andreas Rheinhardt committed 4 years ago

Commit 34173791 parent 0a58fdf1 file · +3 −3Browse files

Unified · Split

libavformat/dhav.c+3−3
@@ -78,10 +78,11 @@ static const uint32_t sample_rates[] = { · 77 unmodified lines
7878 static int parse_ext(AVFormatContext *s, int length)
7979 {
8080 DHAVContext *dhav = s->priv_data;
81− int index, ret = 0;
81+ int64_t ret = 0;
8282
8383 while (length > 0) {
8484 int type = avio_r8(s->pb);
85+ int index;
8586
8687 switch (type) {
8788 case 0x80:
@@ -168,8 +169,7 @@ static int read_chunk(AVFormatContext *s) · 80 unmodified lines
168169 {
169170 DHAVContext *dhav = s->priv_data;
170171 int frame_length, ext_length;
171− int64_t start, end;
172− int ret;
172+ int64_t start, end, ret;
173173
174174 if (avio_feof(s->pb))
175175 return AVERROR_EOF;

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