Commit 78e6f83c authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/au: add assert to help source code analyzers

See: CID1108585 and CID1108603
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f198efb1
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
#include "internal.h" #include "internal.h"
#include "avio_internal.h" #include "avio_internal.h"
#include "pcm.h" #include "pcm.h"
#include "libavutil/avassert.h"
/* if we don't know the size in advance */ /* if we don't know the size in advance */
#define AU_UNKNOWN_SIZE ((uint32_t)(~0)) #define AU_UNKNOWN_SIZE ((uint32_t)(~0))
...@@ -110,6 +111,7 @@ static int au_read_header(AVFormatContext *s) ...@@ -110,6 +111,7 @@ static int au_read_header(AVFormatContext *s)
bps = 2; bps = 2;
} else { } else {
const uint8_t bpcss[] = {4, 0, 3, 5}; const uint8_t bpcss[] = {4, 0, 3, 5};
av_assert0(id >= 23 && id < 23 + 4);
bps = bpcss[id - 23]; bps = bpcss[id - 23];
} }
} else if (!bps) { } else if (!bps) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment