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
b1d22dc5
Commit
b1d22dc5
authored
May 25, 2012
by
Christian Schmidt
Committed by
Luca Barbato
May 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avprobe: display the codec profile in show_stream()
Signed-off-by:
Luca Barbato
<
lu_zero@gentoo.org
>
parent
70026be8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
avprobe.c
avprobe.c
+5
-0
No files found.
avprobe.c
View file @
b1d22dc5
...
@@ -540,6 +540,7 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx)
...
@@ -540,6 +540,7 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx)
AVStream
*
stream
=
fmt_ctx
->
streams
[
stream_idx
];
AVStream
*
stream
=
fmt_ctx
->
streams
[
stream_idx
];
AVCodecContext
*
dec_ctx
;
AVCodecContext
*
dec_ctx
;
AVCodec
*
dec
;
AVCodec
*
dec
;
const
char
*
profile
;
char
val_str
[
128
];
char
val_str
[
128
];
AVRational
display_aspect_ratio
;
AVRational
display_aspect_ratio
;
...
@@ -566,6 +567,10 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx)
...
@@ -566,6 +567,10 @@ static void show_stream(AVFormatContext *fmt_ctx, int stream_idx)
probe_str
(
"codec_tag"
,
tag_string
(
val_str
,
sizeof
(
val_str
),
probe_str
(
"codec_tag"
,
tag_string
(
val_str
,
sizeof
(
val_str
),
dec_ctx
->
codec_tag
));
dec_ctx
->
codec_tag
));
/* print profile, if there is one */
if
(
dec
&&
(
profile
=
av_get_profile_name
(
dec
,
dec_ctx
->
profile
)))
probe_str
(
"profile"
,
profile
);
switch
(
dec_ctx
->
codec_type
)
{
switch
(
dec_ctx
->
codec_type
)
{
case
AVMEDIA_TYPE_VIDEO
:
case
AVMEDIA_TYPE_VIDEO
:
probe_int
(
"width"
,
dec_ctx
->
width
);
probe_int
(
"width"
,
dec_ctx
->
width
);
...
...
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