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
cea1eef2
Commit
cea1eef2
authored
Jan 01, 2015
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: get the profile name through the codec descriptor in avcodec_string()
parent
2c681139
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
utils.c
libavcodec/utils.c
+1
-11
No files found.
libavcodec/utils.c
View file @
cea1eef2
...
@@ -1749,25 +1749,15 @@ void avcodec_string(char *buf, int buf_size, AVCodecContext *enc, int encode)
...
@@ -1749,25 +1749,15 @@ 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
;
char
buf1
[
32
];
char
buf1
[
32
];
int
bitrate
;
int
bitrate
;
int
new_line
=
0
;
int
new_line
=
0
;
AVRational
display_aspect_ratio
;
AVRational
display_aspect_ratio
;
const
AVCodecDescriptor
*
desc
=
avcodec_descriptor_get
(
enc
->
codec_id
);
const
AVCodecDescriptor
*
desc
=
avcodec_descriptor_get
(
enc
->
codec_id
);
if
(
enc
->
codec
)
p
=
enc
->
codec
;
else
if
(
encode
)
p
=
avcodec_find_encoder
(
enc
->
codec_id
);
else
p
=
avcodec_find_decoder
(
enc
->
codec_id
);
if
(
p
)
profile
=
av_get_profile_name
(
p
,
enc
->
profile
);
if
(
desc
)
{
if
(
desc
)
{
codec_name
=
desc
->
name
;
codec_name
=
desc
->
name
;
profile
=
avcodec_profile_name
(
enc
->
codec_id
,
enc
->
profile
);
}
else
if
(
enc
->
codec_id
==
AV_CODEC_ID_MPEG2TS
)
{
}
else
if
(
enc
->
codec_id
==
AV_CODEC_ID_MPEG2TS
)
{
/* fake mpeg2 transport stream codec (currently not
/* fake mpeg2 transport stream codec (currently not
* registered) */
* registered) */
...
...
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