comparison mpegts.c @ 107:d73becdbbda5 libavformat

avoid detecting mpeg stream when other formats embed mp3 tracks.
author mmu_man
date Fri, 18 Apr 2003 14:35:15 +0000
parents a58a8a53eb46
children cc03a75cbde4
comparison
equal deleted inserted replaced
106:4da5d55b3690 107:d73becdbbda5
76 { 76 {
77 int size; 77 int size;
78 size = get_packet_size(p->buf, p->buf_size); 78 size = get_packet_size(p->buf, p->buf_size);
79 if (size < 0) 79 if (size < 0)
80 return 0; 80 return 0;
81 return AVPROBE_SCORE_MAX; 81 return AVPROBE_SCORE_MAX - 1;
82 } 82 }
83 83
84 static int mpegts_read_header(AVFormatContext *s, 84 static int mpegts_read_header(AVFormatContext *s,
85 AVFormatParameters *ap) 85 AVFormatParameters *ap)
86 { 86 {