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
757d5e8e
Commit
757d5e8e
authored
Oct 27, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vp8: stop using deprecated avcodec_set_dimensions
parent
2e0ab4d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
vp8.c
libavcodec/vp8.c
+4
-5
No files found.
libavcodec/vp8.c
View file @
757d5e8e
...
...
@@ -114,16 +114,15 @@ static void vp8_decode_flush(AVCodecContext *avctx)
static
int
update_dimensions
(
VP8Context
*
s
,
int
width
,
int
height
)
{
AVCodecContext
*
avctx
=
s
->
avctx
;
int
i
;
int
i
,
ret
;
if
(
width
!=
s
->
avctx
->
width
||
height
!=
s
->
avctx
->
height
)
{
if
(
av_image_check_size
(
width
,
height
,
0
,
s
->
avctx
))
return
AVERROR_INVALIDDATA
;
vp8_decode_flush_impl
(
s
->
avctx
,
1
);
avcodec_set_dimensions
(
s
->
avctx
,
width
,
height
);
ret
=
ff_set_dimensions
(
s
->
avctx
,
width
,
height
);
if
(
ret
<
0
)
return
ret
;
}
s
->
mb_width
=
(
s
->
avctx
->
coded_width
+
15
)
/
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