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
ce9f5b13
Commit
ce9f5b13
authored
Oct 27, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rv10: stop using deprecated avcodec_set_dimensions
parent
e7ea9703
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
rv10.c
libavcodec/rv10.c
+6
-3
No files found.
libavcodec/rv10.c
View file @
ce9f5b13
...
...
@@ -28,6 +28,7 @@
#include "libavutil/imgutils.h"
#include "avcodec.h"
#include "error_resilience.h"
#include "internal.h"
#include "mpegvideo.h"
#include "mpeg4video.h"
#include "h263.h"
...
...
@@ -358,10 +359,12 @@ static int rv20_decode_picture_header(RVDecContext *rv)
if
(
new_w
!=
s
->
width
||
new_h
!=
s
->
height
)
{
av_log
(
s
->
avctx
,
AV_LOG_DEBUG
,
"attempting to change resolution to %dx%d
\n
"
,
new_w
,
new_h
);
if
(
av_image_check_size
(
new_w
,
new_h
,
0
,
s
->
avctx
)
<
0
)
return
AVERROR_INVALIDDATA
;
ff_MPV_common_end
(
s
);
avcodec_set_dimensions
(
s
->
avctx
,
new_w
,
new_h
);
ret
=
ff_set_dimensions
(
s
->
avctx
,
new_w
,
new_h
);
if
(
ret
<
0
)
return
ret
;
s
->
width
=
new_w
;
s
->
height
=
new_h
;
if
((
ret
=
ff_MPV_common_init
(
s
))
<
0
)
...
...
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