mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
mpc8_probe: make buffer related pointers and function arguments const
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7a84664ffe
commit
c8e5efb496
@ -55,7 +55,7 @@ typedef struct {
|
|||||||
int64_t apetag_start;
|
int64_t apetag_start;
|
||||||
} MPCContext;
|
} MPCContext;
|
||||||
|
|
||||||
static inline int64_t bs_get_v(uint8_t **bs)
|
static inline int64_t bs_get_v(const uint8_t **bs)
|
||||||
{
|
{
|
||||||
int64_t v = 0;
|
int64_t v = 0;
|
||||||
int br = 0;
|
int br = 0;
|
||||||
@ -75,8 +75,8 @@ static inline int64_t bs_get_v(uint8_t **bs)
|
|||||||
|
|
||||||
static int mpc8_probe(AVProbeData *p)
|
static int mpc8_probe(AVProbeData *p)
|
||||||
{
|
{
|
||||||
uint8_t *bs = p->buf + 4;
|
const uint8_t *bs = p->buf + 4;
|
||||||
uint8_t *bs_end = bs + p->buf_size;
|
const uint8_t *bs_end = bs + p->buf_size;
|
||||||
int64_t size;
|
int64_t size;
|
||||||
|
|
||||||
if (p->buf_size < 16)
|
if (p->buf_size < 16)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user