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
3f5c99fc
Commit
3f5c99fc
authored
Oct 03, 2015
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegvideo_enc: export CPB props side data
parent
732a37d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
mpegvideo_enc.c
libavcodec/mpegvideo_enc.c
+9
-0
No files found.
libavcodec/mpegvideo_enc.c
View file @
3f5c99fc
...
...
@@ -241,6 +241,7 @@ static void mpv_encode_defaults(MpegEncContext *s)
av_cold
int
ff_mpv_encode_init
(
AVCodecContext
*
avctx
)
{
MpegEncContext
*
s
=
avctx
->
priv_data
;
AVCPBProperties
*
cpb_props
;
int
i
,
ret
,
format_supported
;
mpv_encode_defaults
(
s
);
...
...
@@ -882,6 +883,14 @@ FF_ENABLE_DEPRECATION_WARNINGS
}
}
cpb_props
=
ff_add_cpb_side_data
(
avctx
);
if
(
!
cpb_props
)
return
AVERROR
(
ENOMEM
);
cpb_props
->
max_bitrate
=
avctx
->
rc_max_rate
;
cpb_props
->
min_bitrate
=
avctx
->
rc_min_rate
;
cpb_props
->
avg_bitrate
=
avctx
->
bit_rate
;
cpb_props
->
buffer_size
=
avctx
->
rc_buffer_size
;
return
0
;
fail:
ff_mpv_encode_end
(
avctx
);
...
...
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