mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-11-03 01:33:50 +08:00
lavf: Constify the probe function argument.
Reviewed-by: Lauri Kasanen Reviewed-by: Tomas Härdin
This commit is contained in:
@@ -64,7 +64,7 @@ static int check_pack_header(const uint8_t *buf)
|
||||
return (buf[1] & 0xC0) == 0x40 || (buf[1] & 0xF0) == 0x20;
|
||||
}
|
||||
|
||||
static int mpegps_probe(AVProbeData *p)
|
||||
static int mpegps_probe(const AVProbeData *p)
|
||||
{
|
||||
uint32_t code = -1;
|
||||
int i;
|
||||
@@ -703,7 +703,7 @@ AVInputFormat ff_mpegps_demuxer = {
|
||||
#define REF_STRING "# VobSub index file,"
|
||||
#define MAX_LINE_SIZE 2048
|
||||
|
||||
static int vobsub_probe(AVProbeData *p)
|
||||
static int vobsub_probe(const AVProbeData *p)
|
||||
{
|
||||
if (!strncmp(p->buf, REF_STRING, sizeof(REF_STRING) - 1))
|
||||
return AVPROBE_SCORE_MAX;
|
||||
|
||||
Reference in New Issue
Block a user