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
e0518705
Commit
e0518705
authored
Jun 09, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffprobe: use new avformat_open_* API.
parent
d0e142bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
ffprobe.c
ffprobe.c
+8
-5
No files found.
ffprobe.c
View file @
e0518705
...
...
@@ -262,15 +262,18 @@ static void show_format(AVFormatContext *fmt_ctx)
static
int
open_input_file
(
AVFormatContext
**
fmt_ctx_ptr
,
const
char
*
filename
)
{
int
err
,
i
;
AVFormatContext
*
fmt_ctx
;
fmt_ctx
=
avformat_alloc_context
();
set_context_opts
(
fmt_ctx
,
avformat_opts
,
AV_OPT_FLAG_DECODING_PARAM
,
NULL
);
AVFormatContext
*
fmt_ctx
=
NULL
;
AVDictionaryEntry
*
t
;
if
((
err
=
av
_open_input_file
(
&
fmt_ctx
,
filename
,
iformat
,
0
,
NULL
))
<
0
)
{
if
((
err
=
av
format_open_input
(
&
fmt_ctx
,
filename
,
iformat
,
&
format_opts
))
<
0
)
{
print_error
(
filename
,
err
);
return
err
;
}
if
((
t
=
av_dict_get
(
format_opts
,
""
,
NULL
,
AV_DICT_IGNORE_SUFFIX
)))
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"Option %s not found.
\n
"
,
t
->
key
);
return
AVERROR_OPTION_NOT_FOUND
;
}
/* fill the streams in the format context */
if
((
err
=
av_find_stream_info
(
fmt_ctx
))
<
0
)
{
...
...
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