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
ce6949d3
Commit
ce6949d3
authored
Oct 27, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oggparsetheora: stop using deprecated avcodec_set_dimensions
parent
7644f5a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
oggparsetheora.c
libavformat/oggparsetheora.c
+8
-8
No files found.
libavformat/oggparsetheora.c
View file @
ce6949d3
...
...
@@ -58,7 +58,6 @@ static int theora_header(AVFormatContext *s, int idx)
switch
(
os
->
buf
[
os
->
pstart
])
{
case
0x80
:
{
GetBitContext
gb
;
int
width
,
height
;
AVRational
timebase
;
init_get_bits
(
&
gb
,
os
->
buf
+
os
->
pstart
,
os
->
psize
*
8
);
...
...
@@ -73,19 +72,20 @@ static int theora_header(AVFormatContext *s, int idx)
return
AVERROR
(
ENOSYS
);
}
width
=
get_bits
(
&
gb
,
16
)
<<
4
;
height
=
get_bits
(
&
gb
,
16
)
<<
4
;
avcodec_set_dimensions
(
st
->
codec
,
width
,
height
);
st
->
codec
->
width
=
get_bits
(
&
gb
,
16
)
<<
4
;
st
->
codec
->
height
=
get_bits
(
&
gb
,
16
)
<<
4
;
if
(
thp
->
version
>=
0x030400
)
skip_bits
(
&
gb
,
100
);
if
(
thp
->
version
>=
0x030200
)
{
width
=
get_bits_long
(
&
gb
,
24
);
height
=
get_bits_long
(
&
gb
,
24
);
int
width
=
get_bits_long
(
&
gb
,
24
);
int
height
=
get_bits_long
(
&
gb
,
24
);
if
(
width
<=
st
->
codec
->
width
&&
width
>
st
->
codec
->
width
-
16
&&
height
<=
st
->
codec
->
height
&&
height
>
st
->
codec
->
height
-
16
)
avcodec_set_dimensions
(
st
->
codec
,
width
,
height
);
height
<=
st
->
codec
->
height
&&
height
>
st
->
codec
->
height
-
16
)
{
st
->
codec
->
width
=
width
;
st
->
codec
->
height
=
height
;
}
skip_bits
(
&
gb
,
16
);
}
...
...
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