Mercurial > libavformat.hg
comparison mpegtsenc.c @ 5803:405bb9032df6 libavformat
reindent
author | bcoudurier |
---|---|
date | Wed, 10 Mar 2010 09:19:14 +0000 |
parents | 667736f463b3 |
children | 9f349253996d |
comparison
equal
deleted
inserted
replaced
5802:2d82e25df58c | 5803:405bb9032df6 |
---|---|
448 } | 448 } |
449 | 449 |
450 ts->mux_rate = s->mux_rate ? s->mux_rate : 1; | 450 ts->mux_rate = s->mux_rate ? s->mux_rate : 1; |
451 | 451 |
452 if (ts->mux_rate > 1) { | 452 if (ts->mux_rate > 1) { |
453 service->pcr_packet_period = (ts->mux_rate * PCR_RETRANS_TIME) / | 453 service->pcr_packet_period = (ts->mux_rate * PCR_RETRANS_TIME) / |
454 (TS_PACKET_SIZE * 8 * 1000); | 454 (TS_PACKET_SIZE * 8 * 1000); |
455 ts->sdt_packet_period = (ts->mux_rate * SDT_RETRANS_TIME) / | 455 ts->sdt_packet_period = (ts->mux_rate * SDT_RETRANS_TIME) / |
456 (TS_PACKET_SIZE * 8 * 1000); | 456 (TS_PACKET_SIZE * 8 * 1000); |
457 ts->pat_packet_period = (ts->mux_rate * PAT_RETRANS_TIME) / | 457 ts->pat_packet_period = (ts->mux_rate * PAT_RETRANS_TIME) / |
458 (TS_PACKET_SIZE * 8 * 1000); | 458 (TS_PACKET_SIZE * 8 * 1000); |
459 | 459 |
460 ts->cur_pcr = av_rescale(s->max_delay, 90000, AV_TIME_BASE); | 460 ts->cur_pcr = av_rescale(s->max_delay, 90000, AV_TIME_BASE); |
461 } else { | 461 } else { |
462 /* Arbitrary values, PAT/PMT could be written on key frames */ | 462 /* Arbitrary values, PAT/PMT could be written on key frames */ |
463 ts->sdt_packet_period = 200; | 463 ts->sdt_packet_period = 200; |
464 ts->pat_packet_period = 40; | 464 ts->pat_packet_period = 40; |
465 if (pcr_st->codec->codec_type == CODEC_TYPE_AUDIO) { | 465 if (pcr_st->codec->codec_type == CODEC_TYPE_AUDIO) { |