[FFmpeg-soc] [soc]: r1398 - dvbmuxer/mpegtsenc.c

bcoudurier subversion at mplayerhq.hu
Fri Oct 5 15:29:33 CEST 2007


Author: bcoudurier
Date: Fri Oct  5 15:29:32 2007
New Revision: 1398

Log:
use rc max rate only if it set, use bitrate if not, safer than (arbitrary?) big value for pcr computation

Modified:
   dvbmuxer/mpegtsenc.c

Modified: dvbmuxer/mpegtsenc.c
==============================================================================
--- dvbmuxer/mpegtsenc.c	(original)
+++ dvbmuxer/mpegtsenc.c	Fri Oct  5 15:29:32 2007
@@ -460,7 +460,7 @@ static int mpegts_write_header(AVFormatC
         int codec_rate;
         st = s->streams[i];
         ts_st = (MpegTSWriteStream*) st->priv_data;
-        if(st->codec->rc_max_rate || st->codec->codec_type == CODEC_TYPE_VIDEO)
+        if(st->codec->rc_max_rate)
             codec_rate= st->codec->rc_max_rate;
         else
             codec_rate= st->codec->bit_rate;



More information about the FFmpeg-soc mailing list