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
b7f3fdd7
Commit
b7f3fdd7
authored
Jul 16, 2006
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
Originally committed as revision 5769 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
717b1733
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
19 deletions
+2
-19
vp3.c
libavcodec/vp3.c
+2
-19
No files found.
libavcodec/vp3.c
View file @
b7f3fdd7
...
...
@@ -2648,16 +2648,9 @@ static int read_huffman_tree(AVCodecContext *avctx, GetBitContext *gb)
static
int
theora_decode_header
(
AVCodecContext
*
avctx
,
GetBitContext
gb
)
{
Vp3DecodeContext
*
s
=
avctx
->
priv_data
;
int
major
,
minor
,
micro
;
major
=
get_bits
(
&
gb
,
8
);
/* version major */
minor
=
get_bits
(
&
gb
,
8
);
/* version minor */
micro
=
get_bits
(
&
gb
,
8
);
/* version micro */
av_log
(
avctx
,
AV_LOG_INFO
,
"Theora bitstream version %d.%d.%d
\n
"
,
major
,
minor
,
micro
);
/* FIXME: endianess? */
s
->
theora
=
(
major
<<
16
)
|
(
minor
<<
8
)
|
micro
;
s
->
theora
=
get_bits_long
(
&
gb
,
24
);
av_log
(
avctx
,
AV_LOG_INFO
,
"Theora bitstream version %X
\n
"
,
s
->
theora
);
/* 3.2.0 aka alpha3 has the same frame orientation as original vp3 */
/* but previous versions have the image flipped relative to vp3 */
...
...
@@ -2726,16 +2719,6 @@ static int theora_decode_header(AVCodecContext *avctx, GetBitContext gb)
return
0
;
}
static
inline
int
theora_get_32bit
(
GetBitContext
gb
)
{
int
ret
=
get_bits
(
&
gb
,
8
);
ret
+=
get_bits
(
&
gb
,
8
)
<<
8
;
ret
+=
get_bits
(
&
gb
,
8
)
<<
16
;
ret
+=
get_bits
(
&
gb
,
8
)
<<
24
;
return
ret
;
}
static
int
theora_decode_tables
(
AVCodecContext
*
avctx
,
GetBitContext
gb
)
{
Vp3DecodeContext
*
s
=
avctx
->
priv_data
;
...
...
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