# HG changeset patch # User diego # Date 1256661317 0 # Node ID 511cbeb9fb4b08d24c4db25c45d87cbb7ae48da7 # Parent 11b8940a3a75ad81ccf6e0cb69350103be741771 Remove crufty leftovers from the era when this file resided within libavformat. diff -r 11b8940a3a75 -r 511cbeb9fb4b pnmenc.c --- a/pnmenc.c Tue Oct 27 15:57:28 2009 +0000 +++ b/pnmenc.c Tue Oct 27 16:35:17 2009 +0000 @@ -337,40 +337,6 @@ return 0; } -#if 0 -static int pnm_probe(AVProbeData *pd) -{ - const char *p = pd->buf; - if (pd->buf_size >= 8 && - p[0] == 'P' && - p[1] >= '4' && p[1] <= '6' && - pnm_space(p[2]) ) - return AVPROBE_SCORE_MAX - 1; /* to permit pgmyuv probe */ - else - return 0; -} - -static int pgmyuv_probe(AVProbeData *pd) -{ - if (match_ext(pd->filename, "pgmyuv")) - return AVPROBE_SCORE_MAX; - else - return 0; -} - -static int pam_probe(AVProbeData *pd) -{ - const char *p = pd->buf; - if (pd->buf_size >= 8 && - p[0] == 'P' && - p[1] == '7' && - p[2] == '\n') - return AVPROBE_SCORE_MAX; - else - return 0; -} -#endif - #if CONFIG_PGM_DECODER AVCodec pgm_decoder = {