Commit b0826b83 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/dvbsub: fix indent after previous commit

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3bf2b376
...@@ -34,28 +34,28 @@ static int dvbsub_probe(AVProbeData *p) ...@@ -34,28 +34,28 @@ static int dvbsub_probe(AVProbeData *p)
for(i=0; i<p->buf_size; i++){ for(i=0; i<p->buf_size; i++){
if (p->buf[i] == 0x0f) { if (p->buf[i] == 0x0f) {
const uint8_t *ptr = p->buf + i; const uint8_t *ptr = p->buf + i;
uint8_t histogram[6] = {0}; uint8_t histogram[6] = {0};
int min = 255; int min = 255;
for(j=0; ptr + 6 < end; j++) { for(j=0; ptr + 6 < end; j++) {
if (*ptr != 0x0f) if (*ptr != 0x0f)
break; break;
type = ptr[1]; type = ptr[1];
page_id = AV_RB16(ptr + 2); page_id = AV_RB16(ptr + 2);
len = AV_RB16(ptr + 4); len = AV_RB16(ptr + 4);
if (type == 0x80) { if (type == 0x80) {
; ;
} else if (type >= 0x10 && type <= 0x14) { } else if (type >= 0x10 && type <= 0x14) {
histogram[type - 0x10] ++; histogram[type - 0x10] ++;
} else } else
break; break;
ptr += 6 + len; ptr += 6 + len;
} }
for (k=0; k < 4; k++) { for (k=0; k < 4; k++) {
min = FFMIN(min, histogram[k]); min = FFMIN(min, histogram[k]);
} }
if (min && j > max_score) if (min && j > max_score)
max_score = j; max_score = j;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment