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
4bfad535
Commit
4bfad535
authored
Oct 10, 2002
by
Fabrice Bellard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added two pass info
Originally committed as revision 1022 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
1cbc2890
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
utils.c
libavcodec/utils.c
+12
-3
No files found.
libavcodec/utils.c
View file @
4bfad535
...
...
@@ -279,9 +279,10 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
enc
->
width
,
enc
->
height
,
(
float
)
enc
->
frame_rate
/
FRAME_RATE_BASE
);
}
snprintf
(
buf
+
strlen
(
buf
),
buf_size
-
strlen
(
buf
),
", q=%d-%d"
,
enc
->
qmin
,
enc
->
qmax
);
if
(
encode
)
{
snprintf
(
buf
+
strlen
(
buf
),
buf_size
-
strlen
(
buf
),
", q=%d-%d"
,
enc
->
qmin
,
enc
->
qmax
);
}
bitrate
=
enc
->
bit_rate
;
break
;
case
CODEC_TYPE_AUDIO
:
...
...
@@ -331,6 +332,14 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
default:
av_abort
();
}
if
(
encode
)
{
if
(
enc
->
flags
&
CODEC_FLAG_PASS1
)
snprintf
(
buf
+
strlen
(
buf
),
buf_size
-
strlen
(
buf
),
", pass 1"
);
if
(
enc
->
flags
&
CODEC_FLAG_PASS2
)
snprintf
(
buf
+
strlen
(
buf
),
buf_size
-
strlen
(
buf
),
", pass 2"
);
}
if
(
bitrate
!=
0
)
{
snprintf
(
buf
+
strlen
(
buf
),
buf_size
-
strlen
(
buf
),
", %d kb/s"
,
bitrate
/
1000
);
...
...
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