summaryrefslogtreecommitdiff
path: root/libavformat/pva.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-25 01:54:41 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-25 01:54:41 +0100
commit28b9099ac1beabc36446528fe980f4c6549b5740 (patch)
tree9414af488a6060611690860afe19444334a2eea3 /libavformat/pva.c
parent59693ed96cf8568b6b4d946ceda4afd67de3b1b7 (diff)
downloadffmpeg-28b9099ac1beabc36446528fe980f4c6549b5740.tar.gz
pva_probe: make buffer related pointers and function arguments const
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/pva.c')
-rw-r--r--libavformat/pva.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/pva.c b/libavformat/pva.c
index ff8ccee852..ae42c8363d 100644
--- a/libavformat/pva.c
+++ b/libavformat/pva.c
@@ -32,7 +32,7 @@ typedef struct {
int continue_pes;
} PVAContext;
-static int pva_check(uint8_t *p) {
+static int pva_check(const uint8_t *p) {
int length = AV_RB16(p + 6);
if (AV_RB16(p) != PVA_MAGIC || !p[2] || p[2] > 2 || p[4] != 0x55 ||
(p[5] & 0xe0) || length > PVA_MAX_PAYLOAD_LENGTH)
@@ -41,7 +41,7 @@ static int pva_check(uint8_t *p) {
}
static int pva_probe(AVProbeData * pd) {
- unsigned char *buf = pd->buf;
+ const unsigned char *buf = pd->buf;
int len = pva_check(buf);
if (len < 0)