reindent after last commit

Originally committed as revision 8330 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs 2007-03-11 22:28:03 +00:00
parent 0fb7a2b9bf
commit 12f3278dc5

View File

@ -2701,40 +2701,40 @@ matroska_read_packet (AVFormatContext *s,
/* Read stream until we have a packet queued. */ /* Read stream until we have a packet queued. */
while (matroska_deliver_packet(matroska, pkt)) { while (matroska_deliver_packet(matroska, pkt)) {
/* Have we already reached the end? */ /* Have we already reached the end? */
if (matroska->done) if (matroska->done)
return AVERROR_IO;
while (res == 0) {
if (!(id = ebml_peek_id(matroska, &matroska->level_up))) {
return AVERROR_IO; return AVERROR_IO;
} else if (matroska->level_up) {
matroska->level_up--;
break;
}
switch (id) { while (res == 0) {
case MATROSKA_ID_CLUSTER: if (!(id = ebml_peek_id(matroska, &matroska->level_up))) {
if ((res = ebml_read_master(matroska, &id)) < 0) return AVERROR_IO;
} else if (matroska->level_up) {
matroska->level_up--;
break;
}
switch (id) {
case MATROSKA_ID_CLUSTER:
if ((res = ebml_read_master(matroska, &id)) < 0)
break;
if ((res = matroska_parse_cluster(matroska)) == 0)
res = 1; /* Parsed one cluster, let's get out. */
break; break;
if ((res = matroska_parse_cluster(matroska)) == 0)
res = 1; /* Parsed one cluster, let's get out. */
break;
default: default:
case EBML_ID_VOID: case EBML_ID_VOID:
res = ebml_read_skip(matroska); res = ebml_read_skip(matroska);
break;
}
if (matroska->level_up) {
matroska->level_up--;
break; break;
}
} }
if (matroska->level_up) { if (res == -1)
matroska->level_up--; matroska->done = 1;
break;
}
}
if (res == -1)
matroska->done = 1;
} }
return 0; return 0;