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
39edfcc9
Commit
39edfcc9
authored
Nov 13, 2011
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename remaining url_fseek to avio_seek.
parent
eef3ea8c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
act.c
libavformat/act.c
+2
-2
bintext.c
libavformat/bintext.c
+6
-6
No files found.
libavformat/act.c
View file @
39edfcc9
...
@@ -92,7 +92,7 @@ static int read_header(AVFormatContext *s,
...
@@ -92,7 +92,7 @@ static int read_header(AVFormatContext *s,
st
->
codec
->
codec_id
=
CODEC_ID_G729
;
st
->
codec
->
codec_id
=
CODEC_ID_G729
;
url_f
seek
(
pb
,
257
,
SEEK_SET
);
avio_
seek
(
pb
,
257
,
SEEK_SET
);
msec
=
get_le16
(
pb
);
msec
=
get_le16
(
pb
);
sec
=
get_byte
(
pb
);
sec
=
get_byte
(
pb
);
min
=
get_le32
(
pb
);
min
=
get_le32
(
pb
);
...
@@ -101,7 +101,7 @@ static int read_header(AVFormatContext *s,
...
@@ -101,7 +101,7 @@ static int read_header(AVFormatContext *s,
ctx
->
bytes_left_in_chunk
=
CHUNK_SIZE
;
ctx
->
bytes_left_in_chunk
=
CHUNK_SIZE
;
url_f
seek
(
pb
,
512
,
SEEK_SET
);
avio_
seek
(
pb
,
512
,
SEEK_SET
);
return
0
;
return
0
;
}
}
...
...
libavformat/bintext.c
View file @
39edfcc9
...
@@ -64,7 +64,7 @@ static int next_tag_read(AVFormatContext *avctx, uint64_t *fsize)
...
@@ -64,7 +64,7 @@ static int next_tag_read(AVFormatContext *avctx, uint64_t *fsize)
int
len
;
int
len
;
uint64_t
start_pos
=
url_fsize
(
pb
)
-
256
;
uint64_t
start_pos
=
url_fsize
(
pb
)
-
256
;
url_f
seek
(
pb
,
start_pos
,
SEEK_SET
);
avio_
seek
(
pb
,
start_pos
,
SEEK_SET
);
if
(
get_buffer
(
pb
,
buf
,
sizeof
(
next_magic
))
!=
sizeof
(
next_magic
))
if
(
get_buffer
(
pb
,
buf
,
sizeof
(
next_magic
))
!=
sizeof
(
next_magic
))
return
-
1
;
return
-
1
;
if
(
memcmp
(
buf
,
next_magic
,
sizeof
(
next_magic
)))
if
(
memcmp
(
buf
,
next_magic
,
sizeof
(
next_magic
)))
...
@@ -149,7 +149,7 @@ static int bintext_read_header(AVFormatContext *s,
...
@@ -149,7 +149,7 @@ static int bintext_read_header(AVFormatContext *s,
predict_width
(
st
->
codec
,
bin
->
fsize
,
got_width
);
predict_width
(
st
->
codec
,
bin
->
fsize
,
got_width
);
if
(
!
ap
->
height
)
if
(
!
ap
->
height
)
calculate_height
(
st
->
codec
,
bin
->
fsize
);
calculate_height
(
st
->
codec
,
bin
->
fsize
);
url_f
seek
(
pb
,
0
,
SEEK_SET
);
avio_
seek
(
pb
,
0
,
SEEK_SET
);
}
}
return
0
;
return
0
;
};
};
...
@@ -203,7 +203,7 @@ static int xbin_read_header(AVFormatContext *s,
...
@@ -203,7 +203,7 @@ static int xbin_read_header(AVFormatContext *s,
if
(
!
url_is_streamed
(
pb
))
{
if
(
!
url_is_streamed
(
pb
))
{
bin
->
fsize
=
url_fsize
(
pb
)
-
9
-
st
->
codec
->
extradata_size
;
bin
->
fsize
=
url_fsize
(
pb
)
-
9
-
st
->
codec
->
extradata_size
;
ff_sauce_read
(
s
,
&
bin
->
fsize
,
NULL
,
0
);
ff_sauce_read
(
s
,
&
bin
->
fsize
,
NULL
,
0
);
url_f
seek
(
pb
,
9
+
st
->
codec
->
extradata_size
,
SEEK_SET
);
avio_
seek
(
pb
,
9
+
st
->
codec
->
extradata_size
,
SEEK_SET
);
}
}
return
0
;
return
0
;
...
@@ -248,7 +248,7 @@ static int adf_read_header(AVFormatContext *s,
...
@@ -248,7 +248,7 @@ static int adf_read_header(AVFormatContext *s,
ff_sauce_read
(
s
,
&
bin
->
fsize
,
&
got_width
,
0
);
ff_sauce_read
(
s
,
&
bin
->
fsize
,
&
got_width
,
0
);
if
(
!
ap
->
height
)
if
(
!
ap
->
height
)
calculate_height
(
st
->
codec
,
bin
->
fsize
);
calculate_height
(
st
->
codec
,
bin
->
fsize
);
url_f
seek
(
pb
,
1
+
192
+
4096
,
SEEK_SET
);
avio_
seek
(
pb
,
1
+
192
+
4096
,
SEEK_SET
);
}
}
return
0
;
return
0
;
}
}
...
@@ -291,7 +291,7 @@ static int idf_read_header(AVFormatContext *s,
...
@@ -291,7 +291,7 @@ static int idf_read_header(AVFormatContext *s,
st
->
codec
->
extradata
[
0
]
=
16
;
st
->
codec
->
extradata
[
0
]
=
16
;
st
->
codec
->
extradata
[
1
]
=
BINTEXT_PALETTE
|
BINTEXT_FONT
;
st
->
codec
->
extradata
[
1
]
=
BINTEXT_PALETTE
|
BINTEXT_FONT
;
url_fseek
(
pb
,
url_f
size
(
pb
)
-
4096
-
48
,
SEEK_SET
);
avio_seek
(
pb
,
avio_
size
(
pb
)
-
4096
-
48
,
SEEK_SET
);
if
(
get_buffer
(
pb
,
st
->
codec
->
extradata
+
2
+
48
,
4096
)
<
0
)
if
(
get_buffer
(
pb
,
st
->
codec
->
extradata
+
2
+
48
,
4096
)
<
0
)
return
AVERROR
(
EIO
);
return
AVERROR
(
EIO
);
...
@@ -302,7 +302,7 @@ static int idf_read_header(AVFormatContext *s,
...
@@ -302,7 +302,7 @@ static int idf_read_header(AVFormatContext *s,
ff_sauce_read
(
s
,
&
bin
->
fsize
,
&
got_width
,
0
);
ff_sauce_read
(
s
,
&
bin
->
fsize
,
&
got_width
,
0
);
if
(
!
ap
->
height
)
if
(
!
ap
->
height
)
calculate_height
(
st
->
codec
,
bin
->
fsize
);
calculate_height
(
st
->
codec
,
bin
->
fsize
);
url_f
seek
(
pb
,
12
,
SEEK_SET
);
avio_
seek
(
pb
,
12
,
SEEK_SET
);
return
0
;
return
0
;
}
}
#endif
/* CONFIG_IDF_DEMUXER */
#endif
/* CONFIG_IDF_DEMUXER */
...
...
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