aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorBenoit Fouet <benoit.fouet@free.fr>2007-06-04 08:53:08 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2007-06-04 08:53:08 +0000
commita45ec41409636524568cfdf9a00e472b76d5faaf (patch)
tree5b213500917bec7fcfd88c7db6c2d34668746608 /libavformat/mpegts.c
parentddcf4b5d6d19fcbf4cb632a7d9a9be4ac9e6738f (diff)
downloadffmpeg-a45ec41409636524568cfdf9a00e472b76d5faaf.tar.gz
Indentation
Originally committed as revision 9197 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c72
1 files changed, 36 insertions, 36 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 02b8d677b2..39188978dd 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -1213,56 +1213,56 @@ static int mpegts_read_header(AVFormatContext *s,
if (s->iformat == &mpegts_demuxer) {
/* normal demux */
- /* first do a scaning to get all the services */
- url_fseek(pb, pos, SEEK_SET);
- mpegts_scan_sdt(ts);
-
- handle_packets(ts, s->probesize);
+ /* first do a scaning to get all the services */
+ url_fseek(pb, pos, SEEK_SET);
+ mpegts_scan_sdt(ts);
- if (ts->nb_services <= 0) {
- /* no SDT found, we try to look at the PAT */
+ handle_packets(ts, s->probesize);
- /* First remove the SDT filters from each PID */
- int i;
- for (i=0; i < NB_PID_MAX; i++) {
- if (ts->pids[i])
- mpegts_close_filter(ts, ts->pids[i]);
- }
- url_fseek(pb, pos, SEEK_SET);
- mpegts_scan_pat(ts);
+ if (ts->nb_services <= 0) {
+ /* no SDT found, we try to look at the PAT */
- handle_packets(ts, s->probesize);
+ /* First remove the SDT filters from each PID */
+ int i;
+ for (i=0; i < NB_PID_MAX; i++) {
+ if (ts->pids[i])
+ mpegts_close_filter(ts, ts->pids[i]);
}
+ url_fseek(pb, pos, SEEK_SET);
+ mpegts_scan_pat(ts);
- if (ts->nb_services <= 0) {
- /* raw transport stream */
- ts->auto_guess = 1;
- s->ctx_flags |= AVFMTCTX_NOHEADER;
- goto do_pcr;
- }
+ handle_packets(ts, s->probesize);
+ }
+
+ if (ts->nb_services <= 0) {
+ /* raw transport stream */
+ ts->auto_guess = 1;
+ s->ctx_flags |= AVFMTCTX_NOHEADER;
+ goto do_pcr;
+ }
- /* tune to first service found */
- for(i=0; i<ts->nb_services; i++){
- service = ts->services[i];
- sid = service->sid;
+ /* tune to first service found */
+ for(i=0; i<ts->nb_services; i++){
+ service = ts->services[i];
+ sid = service->sid;
#ifdef DEBUG_SI
- av_log(ts->stream, AV_LOG_DEBUG, "tuning to '%s'\n", service->name);
+ av_log(ts->stream, AV_LOG_DEBUG, "tuning to '%s'\n", service->name);
#endif
- /* now find the info for the first service if we found any,
- otherwise try to filter all PATs */
+ /* now find the info for the first service if we found any,
+ otherwise try to filter all PATs */
- url_fseek(pb, pos, SEEK_SET);
- mpegts_set_service(ts, sid);
+ url_fseek(pb, pos, SEEK_SET);
+ mpegts_set_service(ts, sid);
- handle_packets(ts, s->probesize);
- }
- /* if could not find service, enable auto_guess */
+ handle_packets(ts, s->probesize);
+ }
+ /* if could not find service, enable auto_guess */
- ts->auto_guess = 1;
+ ts->auto_guess = 1;
#ifdef DEBUG_SI
- av_log(ts->stream, AV_LOG_DEBUG, "tuning done\n");
+ av_log(ts->stream, AV_LOG_DEBUG, "tuning done\n");
#endif
s->ctx_flags |= AVFMTCTX_NOHEADER;
} else {