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
055cda8a
Commit
055cda8a
authored
Nov 14, 2011
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename remaining get_byte to avio_r8.
parent
f3c47e41
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
act.c
libavformat/act.c
+1
-1
bintext.c
libavformat/bintext.c
+5
-5
g723_1.c
libavformat/g723_1.c
+1
-1
mov.c
libavformat/mov.c
+1
-1
No files found.
libavformat/act.c
View file @
055cda8a
...
...
@@ -94,7 +94,7 @@ static int read_header(AVFormatContext *s,
avio_seek
(
pb
,
257
,
SEEK_SET
);
msec
=
get_le16
(
pb
);
sec
=
get_byte
(
pb
);
sec
=
avio_r8
(
pb
);
min
=
get_le32
(
pb
);
st
->
duration
=
av_rescale
(
1000
*
(
min
*
60
+
sec
)
+
msec
,
st
->
codec
->
sample_rate
,
1000
*
st
->
codec
->
frame_size
);
...
...
libavformat/bintext.c
View file @
055cda8a
...
...
@@ -69,13 +69,13 @@ static int next_tag_read(AVFormatContext *avctx, uint64_t *fsize)
return
-
1
;
if
(
memcmp
(
buf
,
next_magic
,
sizeof
(
next_magic
)))
return
-
1
;
if
(
get_byte
(
pb
)
!=
0x01
)
if
(
avio_r8
(
pb
)
!=
0x01
)
return
-
1
;
*
fsize
-=
256
;
#define GET_EFI2_META(name,size) \
len =
get_byte
(pb); \
len =
avio_r8
(pb); \
if (len < 1 || len > size) \
return -1; \
if (avio_read(pb, buf, size) == size && *buf) { \
...
...
@@ -181,9 +181,9 @@ static int xbin_read_header(AVFormatContext *s,
url_fskip
(
pb
,
5
);
st
->
codec
->
width
=
get_le16
(
pb
)
<<
3
;
st
->
codec
->
height
=
get_le16
(
pb
);
fontheight
=
get_byte
(
pb
);
fontheight
=
avio_r8
(
pb
);
st
->
codec
->
height
*=
fontheight
;
flags
=
get_byte
(
pb
);
flags
=
avio_r8
(
pb
);
st
->
codec
->
extradata_size
=
2
;
if
((
flags
&
BINTEXT_PALETTE
))
...
...
@@ -218,7 +218,7 @@ static int adf_read_header(AVFormatContext *s,
AVIOContext
*
pb
=
s
->
pb
;
AVStream
*
st
;
if
(
get_byte
(
pb
)
!=
1
)
if
(
avio_r8
(
pb
)
!=
1
)
return
AVERROR_INVALIDDATA
;
st
=
init_stream
(
s
,
ap
);
...
...
libavformat/g723_1.c
View file @
055cda8a
...
...
@@ -51,7 +51,7 @@ static int g723_1_read_packet(AVFormatContext *s, AVPacket *pkt)
int
size
,
byte
,
ret
;
pkt
->
pos
=
url_ftell
(
s
->
pb
);
byte
=
get_byte
(
s
->
pb
);
byte
=
avio_r8
(
s
->
pb
);
size
=
frame_size
[
byte
&
3
];
ret
=
av_new_packet
(
pkt
,
size
);
...
...
libavformat/mov.c
View file @
055cda8a
...
...
@@ -1305,7 +1305,7 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
st
->
codec
->
flags2
|=
CODEC_FLAG2_DROP_FRAME_TIMECODE
;
avio_rb32
(
pb
);
avio_rb32
(
pb
);
st
->
codec
->
time_base
.
den
=
get_byte
(
pb
);
st
->
codec
->
time_base
.
den
=
avio_r8
(
pb
);
st
->
codec
->
time_base
.
num
=
1
;
}
/* other codec type, just skip (rtp, mp4s, ...) */
...
...
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