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
49651063
Commit
49651063
authored
Nov 14, 2011
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use AVIOContext.seekable instead of deprecated url_is_streamed.
parent
7b79305a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bintext.c
libavformat/bintext.c
+4
-4
No files found.
libavformat/bintext.c
View file @
49651063
...
...
@@ -140,7 +140,7 @@ static int bintext_read_header(AVFormatContext *s,
st
->
codec
->
extradata
[
0
]
=
16
;
st
->
codec
->
extradata
[
1
]
=
0
;
if
(
!
url_is_streamed
(
pb
)
)
{
if
(
pb
->
seekable
)
{
int
got_width
=
0
;
bin
->
fsize
=
avio_size
(
pb
);
if
(
ff_sauce_read
(
s
,
&
bin
->
fsize
,
&
got_width
,
0
)
<
0
)
...
...
@@ -200,7 +200,7 @@ static int xbin_read_header(AVFormatContext *s,
if
(
avio_read
(
pb
,
st
->
codec
->
extradata
+
2
,
st
->
codec
->
extradata_size
-
2
)
<
0
)
return
AVERROR
(
EIO
);
if
(
!
url_is_streamed
(
pb
)
)
{
if
(
pb
->
seekable
)
{
bin
->
fsize
=
avio_size
(
pb
)
-
9
-
st
->
codec
->
extradata_size
;
ff_sauce_read
(
s
,
&
bin
->
fsize
,
NULL
,
0
);
avio_seek
(
pb
,
9
+
st
->
codec
->
extradata_size
,
SEEK_SET
);
...
...
@@ -241,7 +241,7 @@ static int adf_read_header(AVFormatContext *s,
if
(
avio_read
(
pb
,
st
->
codec
->
extradata
+
2
+
48
,
4096
)
<
0
)
return
AVERROR
(
EIO
);
if
(
!
url_is_streamed
(
pb
)
)
{
if
(
pb
->
seekable
)
{
int
got_width
=
0
;
bin
->
fsize
=
avio_size
(
pb
)
-
1
-
192
-
4096
;
st
->
codec
->
width
=
80
<<
3
;
...
...
@@ -276,7 +276,7 @@ static int idf_read_header(AVFormatContext *s,
AVStream
*
st
;
int
got_width
=
0
;
if
(
url_is_streamed
(
pb
)
)
if
(
!
pb
->
seekable
)
return
AVERROR
(
EIO
);
st
=
init_stream
(
s
,
ap
);
...
...
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