aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorelupus <elupus@ecce.se>2008-08-27 20:08:20 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-14 17:11:07 +0200
commit6214266362a7881b5fe3c2e57a4e4c1762a832eb (patch)
tree961bad7591fc83258f4e213f4f7aef4b83132541
parent0a90b6a43e76aec8031b6c8a46bba2bf6cd25fa7 (diff)
downloadffmpeg-6214266362a7881b5fe3c2e57a4e4c1762a832eb.tar.gz
cosmetic reindent of mpegts_get_pcr
-rw-r--r--libavformat/mpegts.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 011868e059..9a4e129a36 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1719,18 +1719,18 @@ static int64_t mpegts_get_pcr(AVFormatContext *s, int stream_index,
uint8_t buf[TS_PACKET_SIZE];
int pcr_l, pcr_pid = ((PESContext*)s->streams[stream_index]->priv_data)->pcr_pid;
pos = ((*ppos + ts->raw_packet_size - 1 - ts->pos47) / ts->raw_packet_size) * ts->raw_packet_size + ts->pos47;
- while(pos < pos_limit) {
- if (avio_seek(s->pb, pos, SEEK_SET) < 0)
- return AV_NOPTS_VALUE;
- if (avio_read(s->pb, buf, TS_PACKET_SIZE) != TS_PACKET_SIZE)
- return AV_NOPTS_VALUE;
- if ((pcr_pid < 0 || (AV_RB16(buf + 1) & 0x1fff) == pcr_pid) &&
- parse_pcr(&timestamp, &pcr_l, buf) == 0) {
- *ppos = pos;
- return timestamp;
- }
- pos += ts->raw_packet_size;
+ while(pos < pos_limit) {
+ if (avio_seek(s->pb, pos, SEEK_SET) < 0)
+ return AV_NOPTS_VALUE;
+ if (avio_read(s->pb, buf, TS_PACKET_SIZE) != TS_PACKET_SIZE)
+ return AV_NOPTS_VALUE;
+ if ((pcr_pid < 0 || (AV_RB16(buf + 1) & 0x1fff) == pcr_pid) &&
+ parse_pcr(&timestamp, &pcr_l, buf) == 0) {
+ *ppos = pos;
+ return timestamp;
}
+ pos += ts->raw_packet_size;
+ }
return AV_NOPTS_VALUE;
}