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
d88e9f1c
Commit
d88e9f1c
authored
Oct 28, 2011
by
Janne Grunau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
seek-test: update to recent avformat api
parent
813907d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
seek-test.c
libavformat/seek-test.c
+5
-5
No files found.
libavformat/seek-test.c
View file @
d88e9f1c
...
...
@@ -64,10 +64,10 @@ int main(int argc, char **argv)
AVFormatContext
*
ic
=
NULL
;
int
i
,
ret
,
stream_id
;
int64_t
timestamp
;
AV
FormatParameters
params
,
*
ap
=
&
params
;
memset
(
ap
,
0
,
sizeof
(
params
));
a
p
->
channels
=
1
;
a
p
->
sample_rate
=
22050
;
AV
Dictionary
*
format_opts
=
NULL
;
a
v_dict_set
(
&
format_opts
,
"channels"
,
"1"
,
0
)
;
a
v_dict_set
(
&
format_opts
,
"sample_rate"
,
"22050"
,
0
)
;
/* initialize libavcodec, and register all codecs and formats */
av_register_all
();
...
...
@@ -80,7 +80,7 @@ int main(int argc, char **argv)
filename
=
argv
[
1
];
ret
=
av
_open_input_file
(
&
ic
,
filename
,
NULL
,
0
,
ap
);
ret
=
av
format_open_input
(
&
ic
,
filename
,
NULL
,
&
format_opts
);
if
(
ret
<
0
)
{
fprintf
(
stderr
,
"cannot open %s
\n
"
,
filename
);
exit
(
1
);
...
...
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