Revision bc8964ef

View differences:

libavcodec/pnmenc.c
337 337
    return 0;
338 338
}
339 339

  
340
#if 0
341
static int pnm_probe(AVProbeData *pd)
342
{
343
    const char *p = pd->buf;
344
    if (pd->buf_size >= 8 &&
345
        p[0] == 'P' &&
346
        p[1] >= '4' && p[1] <= '6' &&
347
        pnm_space(p[2]) )
348
        return AVPROBE_SCORE_MAX - 1; /* to permit pgmyuv probe */
349
    else
350
        return 0;
351
}
352

  
353
static int pgmyuv_probe(AVProbeData *pd)
354
{
355
    if (match_ext(pd->filename, "pgmyuv"))
356
        return AVPROBE_SCORE_MAX;
357
    else
358
        return 0;
359
}
360

  
361
static int pam_probe(AVProbeData *pd)
362
{
363
    const char *p = pd->buf;
364
    if (pd->buf_size >= 8 &&
365
        p[0] == 'P' &&
366
        p[1] == '7' &&
367
        p[2] == '\n')
368
        return AVPROBE_SCORE_MAX;
369
    else
370
        return 0;
371
}
372
#endif
373

  
374 340

  
375 341
#if CONFIG_PGM_DECODER
376 342
AVCodec pgm_decoder = {

Also available in: Unified diff