diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-04 23:42:24 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-05 00:04:38 +0200 |
commit | c7369f3a4bd21ea64571c1b0c4fcbf39f8daf68c (patch) | |
tree | 41cda32b68d41d82aeba04fda3a4d6783bb1dc58 /libavformat/avidec.c | |
parent | ca234639ac49a0dc073ac1f10977979acdb94f97 (diff) | |
download | ffmpeg-c7369f3a4bd21ea64571c1b0c4fcbf39f8daf68c.tar.gz |
avformat/avidec: print a warning for negative sample_size
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r-- | libavformat/avidec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 0668b17690..ab9d53e750 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -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; |