Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
040ddd27
Commit
040ddd27
authored
Sep 15, 2015
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/utils: Correctly show bit_rate >INT_MAX.
Fixes ticket #2089.
parent
72db5e96
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
utils.c
libavcodec/utils.c
+4
-4
No files found.
libavcodec/utils.c
View file @
040ddd27
...
@@ -1118,9 +1118,9 @@ static void get_subtitle_defaults(AVSubtitle *sub)
...
@@ -1118,9 +1118,9 @@ static void get_subtitle_defaults(AVSubtitle *sub)
sub
->
pts
=
AV_NOPTS_VALUE
;
sub
->
pts
=
AV_NOPTS_VALUE
;
}
}
static
int
get_bit_rate
(
AVCodecContext
*
ctx
)
static
int
64_t
get_bit_rate
(
AVCodecContext
*
ctx
)
{
{
int
bit_rate
;
int
64_t
bit_rate
;
int
bits_per_sample
;
int
bits_per_sample
;
switch
(
ctx
->
codec_type
)
{
switch
(
ctx
->
codec_type
)
{
...
@@ -2653,7 +2653,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
...
@@ -2653,7 +2653,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
const
char
*
codec_name
;
const
char
*
codec_name
;
const
char
*
profile
=
NULL
;
const
char
*
profile
=
NULL
;
const
AVCodec
*
p
;
const
AVCodec
*
p
;
int
bitrate
;
int
64_t
bitrate
;
int
new_line
=
0
;
int
new_line
=
0
;
AVRational
display_aspect_ratio
;
AVRational
display_aspect_ratio
;
const
char
*
separator
=
enc
->
dump_separator
?
(
const
char
*
)
enc
->
dump_separator
:
", "
;
const
char
*
separator
=
enc
->
dump_separator
?
(
const
char
*
)
enc
->
dump_separator
:
", "
;
...
@@ -2825,7 +2825,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
...
@@ -2825,7 +2825,7 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
bitrate
=
get_bit_rate
(
enc
);
bitrate
=
get_bit_rate
(
enc
);
if
(
bitrate
!=
0
)
{
if
(
bitrate
!=
0
)
{
snprintf
(
buf
+
strlen
(
buf
),
buf_size
-
strlen
(
buf
),
snprintf
(
buf
+
strlen
(
buf
),
buf_size
-
strlen
(
buf
),
", %
d
kb/s"
,
bitrate
/
1000
);
", %
"
PRId64
"
kb/s"
,
bitrate
/
1000
);
}
else
if
(
enc
->
rc_max_rate
>
0
)
{
}
else
if
(
enc
->
rc_max_rate
>
0
)
{
snprintf
(
buf
+
strlen
(
buf
),
buf_size
-
strlen
(
buf
),
snprintf
(
buf
+
strlen
(
buf
),
buf_size
-
strlen
(
buf
),
", max. %"
PRId64
" kb/s"
,
(
int64_t
)
enc
->
rc_max_rate
/
1000
);
", max. %"
PRId64
" kb/s"
,
(
int64_t
)
enc
->
rc_max_rate
/
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