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
43ca94a6
Commit
43ca94a6
authored
Apr 16, 2014
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffprobe: use the codec descriptor if no decoder was found.
parent
c9212abf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
ffprobe.c
ffprobe.c
+7
-0
No files found.
ffprobe.c
View file @
43ca94a6
...
@@ -1976,6 +1976,7 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id
...
@@ -1976,6 +1976,7 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id
const
char
*
s
;
const
char
*
s
;
AVRational
sar
,
dar
;
AVRational
sar
,
dar
;
AVBPrint
pbuf
;
AVBPrint
pbuf
;
const
AVCodecDescriptor
*
cd
;
int
ret
=
0
;
int
ret
=
0
;
av_bprint_init
(
&
pbuf
,
1
,
AV_BPRINT_SIZE_UNLIMITED
);
av_bprint_init
(
&
pbuf
,
1
,
AV_BPRINT_SIZE_UNLIMITED
);
...
@@ -1993,6 +1994,12 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id
...
@@ -1993,6 +1994,12 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id
if
(
dec
->
long_name
)
print_str
(
"codec_long_name"
,
dec
->
long_name
);
if
(
dec
->
long_name
)
print_str
(
"codec_long_name"
,
dec
->
long_name
);
else
print_str_opt
(
"codec_long_name"
,
"unknown"
);
else
print_str_opt
(
"codec_long_name"
,
"unknown"
);
}
}
}
else
if
((
cd
=
avcodec_descriptor_get
(
stream
->
codec
->
codec_id
)))
{
print_str_opt
(
"codec_name"
,
cd
->
name
);
if
(
!
do_bitexact
)
{
print_str_opt
(
"codec_long_name"
,
cd
->
long_name
?
cd
->
long_name
:
"unknown"
);
}
}
else
{
}
else
{
print_str_opt
(
"codec_name"
,
"unknown"
);
print_str_opt
(
"codec_name"
,
"unknown"
);
if
(
!
do_bitexact
)
{
if
(
!
do_bitexact
)
{
...
...
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