Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
7e051558
Commit
7e051558
authored
Oct 03, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup video buffer size
Originally committed as revision 3552 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
92050933
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
mpeg.c
libavformat/mpeg.c
+6
-1
No files found.
libavformat/mpeg.c
View file @
7e051558
...
...
@@ -306,13 +306,18 @@ static int mpeg_mux_init(AVFormatContext *ctx)
break
;
case
CODEC_TYPE_VIDEO
:
stream
->
id
=
mpv_id
++
;
if
(
s
->
is_vcd
)
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;
else
/* This value HAS to be used for SVCD (see SVCD standard, p. 26 V.2.3.2).
Right now it is also used for everything else.*/
stream->max_buffer_size = 230 * 1024;
#endif
s
->
video_bound
++
;
break
;
default:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment