Browse Source

10l typo, fix ts total bit rate computation

Originally committed as revision 22343 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Baptiste Coudurier 16 years ago
parent
commit
9169174fd6
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      libavformat/mpegtsenc.c
  2. +2
    -2
      tests/ref/lavf/ts

+ 2
- 2
libavformat/mpegtsenc.c View File

@@ -476,8 +476,8 @@ static int mpegts_write_header(AVFormatContext *s)

total_bit_rate +=
total_bit_rate * 4 / (TS_PACKET_SIZE-4) + /* TS header size */
1000 * 8 * sdt_size / PAT_RETRANS_TIME + /* SDT size */
1000 * 8 * pat_pmt_size / SDT_RETRANS_TIME + /* PAT+PMT size */
1000 * 8 * sdt_size / SDT_RETRANS_TIME + /* SDT size */
1000 * 8 * pat_pmt_size / PAT_RETRANS_TIME + /* PAT+PMT size */
1000 * 8 * 8 / PCR_RETRANS_TIME; /* PCR size */

if (s->mux_rate)


+ 2
- 2
tests/ref/lavf/ts View File

@@ -1,3 +1,3 @@
3ecdc566c525d58bc287ce1baffd9407 *./tests/data/lavf/lavf.ts
430144 ./tests/data/lavf/lavf.ts
1e39846ad39b799686df372fcf08d8b0 *./tests/data/lavf/lavf.ts
428452 ./tests/data/lavf/lavf.ts
./tests/data/lavf/lavf.ts CRC=0x133216c1

Loading…
Cancel
Save