[FFmpeg-soc] [soc]: r2007 - dvbmuxer/mpegpesenc.c
bcoudurier
subversion at mplayerhq.hu
Tue Mar 11 14:46:09 CET 2008
Author: bcoudurier
Date: Tue Mar 11 14:46:06 2008
New Revision: 2007
Log:
move code back where it was
Modified:
dvbmuxer/mpegpesenc.c
Modified: dvbmuxer/mpegpesenc.c
==============================================================================
--- dvbmuxer/mpegpesenc.c (original)
+++ dvbmuxer/mpegpesenc.c Tue Mar 11 14:46:06 2008
@@ -46,6 +46,10 @@ int ff_pes_muxer_init(AVFormatContext *c
stream->max_buffer_size = 4 * 1024;
break;
case CODEC_TYPE_VIDEO:
+ if (st->codec->rc_buffer_size)
+ stream->max_buffer_size = 6*1024 + st->codec->rc_buffer_size/8;
+ else
+ stream->max_buffer_size = 230*1024; //FIXME this is probably too small as default
#if 0
/* see VCD standard, p. IV-7*/
stream->max_buffer_size = 46 * 1024;
@@ -54,10 +58,6 @@ int ff_pes_muxer_init(AVFormatContext *c
Right now it is also used for everything else.*/
stream->max_buffer_size = 230 * 1024;
#endif
- if (st->codec->rc_buffer_size)
- stream->max_buffer_size = 6*1024 + st->codec->rc_buffer_size/8;
- else
- stream->max_buffer_size = 230*1024; //FIXME this is probably too small as default
break;
case CODEC_TYPE_SUBTITLE:
stream->max_buffer_size = 16 * 1024;
More information about the FFmpeg-soc
mailing list