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
e42500cb
Commit
e42500cb
authored
Mar 17, 2011
by
Anton Khirnov
Committed by
Ronald S. Bultje
Mar 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: replace some more avio_seek(SEEK_CUR) with avio_skip
Signed-off-by:
Ronald S. Bultje
<
rsbultje@gmail.com
>
parent
027f60f3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
mp3dec.c
libavformat/mp3dec.c
+1
-1
wtv.c
libavformat/wtv.c
+2
-2
No files found.
libavformat/mp3dec.c
View file @
e42500cb
...
@@ -90,7 +90,7 @@ static int mp3_parse_vbr_tags(AVFormatContext *s, AVStream *st, int64_t base)
...
@@ -90,7 +90,7 @@ static int mp3_parse_vbr_tags(AVFormatContext *s, AVStream *st, int64_t base)
return
-
1
;
return
-
1
;
/* Check for Xing / Info tag */
/* Check for Xing / Info tag */
avio_s
eek
(
s
->
pb
,
xing_offtbl
[
c
.
lsf
==
1
][
c
.
nb_channels
==
1
],
SEEK_CUR
);
avio_s
kip
(
s
->
pb
,
xing_offtbl
[
c
.
lsf
==
1
][
c
.
nb_channels
==
1
]
);
v
=
avio_rb32
(
s
->
pb
);
v
=
avio_rb32
(
s
->
pb
);
if
(
v
==
MKBETAG
(
'X'
,
'i'
,
'n'
,
'g'
)
||
v
==
MKBETAG
(
'I'
,
'n'
,
'f'
,
'o'
))
{
if
(
v
==
MKBETAG
(
'X'
,
'i'
,
'n'
,
'g'
)
||
v
==
MKBETAG
(
'I'
,
'n'
,
'f'
,
'o'
))
{
v
=
avio_rb32
(
s
->
pb
);
v
=
avio_rb32
(
s
->
pb
);
...
...
libavformat/wtv.c
View file @
e42500cb
...
@@ -701,10 +701,10 @@ static AVStream * parse_media_type(AVFormatContext *s, AVStream *st, int sid,
...
@@ -701,10 +701,10 @@ static AVStream * parse_media_type(AVFormatContext *s, AVStream *st, int sid,
return
NULL
;
return
NULL
;
if
(
!
ff_guidcmp
(
formattype
,
format_videoinfo2
))
{
if
(
!
ff_guidcmp
(
formattype
,
format_videoinfo2
))
{
int
consumed
=
parse_videoinfoheader2
(
s
,
st
);
int
consumed
=
parse_videoinfoheader2
(
s
,
st
);
avio_s
eek
(
pb
,
FFMAX
(
size
-
consumed
,
0
),
SEEK_CUR
);
avio_s
kip
(
pb
,
FFMAX
(
size
-
consumed
,
0
)
);
}
else
if
(
!
ff_guidcmp
(
formattype
,
format_mpeg2_video
))
{
}
else
if
(
!
ff_guidcmp
(
formattype
,
format_mpeg2_video
))
{
int
consumed
=
parse_videoinfoheader2
(
s
,
st
);
int
consumed
=
parse_videoinfoheader2
(
s
,
st
);
avio_s
eek
(
pb
,
FFMAX
(
size
-
consumed
,
0
),
SEEK_CUR
);
avio_s
kip
(
pb
,
FFMAX
(
size
-
consumed
,
0
)
);
}
else
{
}
else
{
if
(
ff_guidcmp
(
formattype
,
format_none
))
if
(
ff_guidcmp
(
formattype
,
format_none
))
av_log
(
s
,
AV_LOG_WARNING
,
"unknown formattype:"
PRI_GUID
"
\n
"
,
ARG_GUID
(
formattype
));
av_log
(
s
,
AV_LOG_WARNING
,
"unknown formattype:"
PRI_GUID
"
\n
"
,
ARG_GUID
(
formattype
));
...
...
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