1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-03-03 14:32:16 +02:00

asfdec: make nb_sub to be unsigned int

number of subpayloads should be always positive

Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Alexandra Hájková 2015-07-17 14:17:07 +02:00 committed by Anton Khirnov
parent 2883ef34b5
commit e61f39849c

View File

@ -134,7 +134,7 @@ typedef struct ASFContext {
// packet state
uint64_t sub_left; // subpayloads left or not
int nb_sub; // number of subpayloads read so far from the current ASF packet
unsigned int nb_sub; // number of subpayloads read so far from the current ASF packet
uint16_t mult_sub_len; // total length of subpayloads array inside multiple payload
uint64_t nb_mult_left; // multiple payloads left
int return_subpayload;