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
91381201
Commit
91381201
authored
Oct 11, 2003
by
Alex Beregszaszi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
theora comments skipping
Originally committed as revision 2361 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
6cbff2f4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
vp3.c
libavcodec/vp3.c
+20
-1
No files found.
libavcodec/vp3.c
View file @
91381201
...
...
@@ -2890,6 +2890,25 @@ static int theora_decode_header(AVCodecContext *avctx, GetBitContext gb)
return
0
;
}
static
int
theora_decode_comments
(
AVCodecContext
*
avctx
,
GetBitContext
gb
)
{
int
nb_comments
,
i
,
tmp
;
tmp
=
get_bits
(
&
gb
,
32
);
while
(
tmp
-=
8
)
skip_bits
(
&
gb
,
8
);
nb_comments
=
get_bits
(
&
gb
,
32
);
for
(
i
=
0
;
i
<
nb_comments
;
i
++
)
{
tmp
=
get_bits
(
&
gb
,
32
);
while
(
tmp
-=
8
)
skip_bits
(
&
gb
,
8
);
}
return
0
;
}
static
int
theora_decode_tables
(
AVCodecContext
*
avctx
,
GetBitContext
gb
)
{
Vp3DecodeContext
*
s
=
avctx
->
priv_data
;
...
...
@@ -2948,7 +2967,7 @@ static int theora_decode_init(AVCodecContext *avctx)
vp3_decode_init
(
avctx
);
break
;
case
0x81
:
/* comment */
theora_decode_comments
(
avctx
,
gb
);
break
;
case
0x82
:
theora_decode_tables
(
avctx
,
gb
);
...
...
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