Mercurial > libavformat.hg
comparison mpegts.c @ 2113:eb0513a0c1b6 libavformat
get rid of if(1)
author | michael |
---|---|
date | Sat, 02 Jun 2007 23:14:38 +0000 |
parents | e6b06336f94b |
children | d21480a68906 |
comparison
equal
deleted
inserted
replaced
2112:e6b06336f94b | 2113:eb0513a0c1b6 |
---|---|
1211 ts->auto_guess = 0; | 1211 ts->auto_guess = 0; |
1212 | 1212 |
1213 if (s->iformat == &mpegts_demuxer) { | 1213 if (s->iformat == &mpegts_demuxer) { |
1214 /* normal demux */ | 1214 /* normal demux */ |
1215 | 1215 |
1216 if (!ts->auto_guess) { | |
1217 /* first do a scaning to get all the services */ | 1216 /* first do a scaning to get all the services */ |
1218 url_fseek(pb, pos, SEEK_SET); | 1217 url_fseek(pb, pos, SEEK_SET); |
1219 mpegts_scan_sdt(ts); | 1218 mpegts_scan_sdt(ts); |
1220 | 1219 |
1221 handle_packets(ts, s->probesize); | 1220 handle_packets(ts, s->probesize); |
1263 ts->auto_guess = 1; | 1262 ts->auto_guess = 1; |
1264 | 1263 |
1265 #ifdef DEBUG_SI | 1264 #ifdef DEBUG_SI |
1266 av_log(ts->stream, AV_LOG_DEBUG, "tuning done\n"); | 1265 av_log(ts->stream, AV_LOG_DEBUG, "tuning done\n"); |
1267 #endif | 1266 #endif |
1268 } | |
1269 s->ctx_flags |= AVFMTCTX_NOHEADER; | 1267 s->ctx_flags |= AVFMTCTX_NOHEADER; |
1270 } else { | 1268 } else { |
1271 AVStream *st; | 1269 AVStream *st; |
1272 int pcr_pid, pid, nb_packets, nb_pcrs, ret, pcr_l; | 1270 int pcr_pid, pid, nb_packets, nb_pcrs, ret, pcr_l; |
1273 int64_t pcrs[2], pcr_h; | 1271 int64_t pcrs[2], pcr_h; |