[FFmpeg-cvslog] r21196 - trunk/libavformat/mpegtsenc.c

bcoudurier subversion
Wed Jan 13 21:20:05 CET 2010


Author: bcoudurier
Date: Wed Jan 13 21:20:05 2010
New Revision: 21196

Log:
fix ts packet header size computation, patch by Niobos, niobos at dest-unreach dot be

Modified:
   trunk/libavformat/mpegtsenc.c

Modified: trunk/libavformat/mpegtsenc.c
==============================================================================
--- trunk/libavformat/mpegtsenc.c	Wed Jan 13 21:14:53 2010	(r21195)
+++ trunk/libavformat/mpegtsenc.c	Wed Jan 13 21:20:05 2010	(r21196)
@@ -472,7 +472,7 @@ static int mpegts_write_header(AVFormatC
     pat_pmt_size = url_ftell(s->pb) - pos;
 
     total_bit_rate +=
-        total_bit_rate *  4 / TS_PACKET_SIZE           + /* TS  header size */
+        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 * 8            / PCR_RETRANS_TIME;      /* PCR size */



More information about the ffmpeg-cvslog mailing list