Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-10-20 16:33:05 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-10-20 16:46:36 +0400
commit78e6f83ce027bc4cfee055a3d68e97a6d35ea434 (patch)
tree50d1063142b13999ad4cf104b1e00eb6822e1ac8 /libavformat
parentf198efb179cb33d96b262925f89ba8fa389ac5cd (diff)
avformat/au: add assert to help source code analyzers
See: CID1108585 and CID1108603 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/au.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/au.c b/libavformat/au.c
index 5546c7fa20..edf0f32f00 100644
--- a/libavformat/au.c
+++ b/libavformat/au.c
@@ -31,6 +31,7 @@
#include "internal.h"
#include "avio_internal.h"
#include "pcm.h"
+#include "libavutil/avassert.h"
/* if we don't know the size in advance */
#define AU_UNKNOWN_SIZE ((uint32_t)(~0))
@@ -110,6 +111,7 @@ static int au_read_header(AVFormatContext *s)
bps = 2;
} else {
const uint8_t bpcss[] = {4, 0, 3, 5};
+ av_assert0(id >= 23 && id < 23 + 4);
bps = bpcss[id - 23];
}
} else if (!bps) {