History

avcodec/osq: fix type of nb_samples

Fixes crash caused by signed integer overflow.

Paul B Mahol committed 3 years ago

Commit 87b8c101 parent 5d84ac51 file · +1 −1Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/osq.c+1−1
@@ -52,7 +52,7 @@ typedef struct OSQContext { · 51 unmodified lines
5252
5353 int decorrelate;
5454 int frame_samples;
55− int64_t nb_samples;
55+ uint64_t nb_samples;
5656
5757 int32_t *decode_buffer[2];
5858

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