mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-22 10:58:04 +00:00
avformat/avidec: print a warning for negative sample_size
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ca234639ac
commit
c7369f3a4b
@ -693,6 +693,8 @@ static int avi_read_header(AVFormatContext *s)
|
||||
default:
|
||||
av_log(s, AV_LOG_INFO, "unknown stream type %X\n", tag1);
|
||||
}
|
||||
if (ast->sample_size < 0)
|
||||
av_log(s, AV_LOG_WARNING, "sample size %d is invalid\n", ast->sample_size);
|
||||
ast->sample_size = FFMAX(ast->sample_size, 0);
|
||||
if (ast->sample_size == 0) {
|
||||
st->duration = st->nb_frames;
|
||||
|
Loading…
Reference in New Issue
Block a user