#define LMLM4_MAX_PACKET_SIZE 1024 * 1024
- static int lmlm4_probe(AVProbeData * pd) {
+ static int lmlm4_probe(AVProbeData *pd)
+ {
- unsigned char *buf = pd->buf;
+ const unsigned char *buf = pd->buf;
unsigned int frame_type, packet_size;
- frame_type = AV_RB16(buf+2);
- packet_size = AV_RB32(buf+4);
+ frame_type = AV_RB16(buf + 2);
+ packet_size = AV_RB32(buf + 4);
if (!AV_RB16(buf) && frame_type <= LMLM4_MPEG1L2 && packet_size &&
frame_type != LMLM4_INVALID && packet_size <= LMLM4_MAX_PACKET_SIZE) {