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
256b986c
Commit
256b986c
authored
Nov 01, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/exr: stop using deprecated avcodec_set_dimensions()
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
01507ab3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
exr.c
libavcodec/exr.c
+3
-6
No files found.
libavcodec/exr.c
View file @
256b986c
...
...
@@ -35,6 +35,7 @@
#include "get_bits.h"
#include "avcodec.h"
#include "bytestream.h"
#include "internal.h"
#include "mathops.h"
#include "thread.h"
#include "libavutil/imgutils.h"
...
...
@@ -1184,9 +1185,6 @@ static int decode_frame(AVCodecContext *avctx,
return
AVERROR_PATCHWELCOME
;
}
if
(
av_image_check_size
(
w
,
h
,
0
,
avctx
))
return
AVERROR_INVALIDDATA
;
// Verify the xmin, xmax, ymin, ymax and xdelta before setting the actual image size
if
(
s
->
xmin
>
s
->
xmax
||
s
->
ymin
>
s
->
ymax
||
...
...
@@ -1196,9 +1194,8 @@ static int decode_frame(AVCodecContext *avctx,
return
AVERROR_INVALIDDATA
;
}
if
(
w
!=
avctx
->
width
||
h
!=
avctx
->
height
)
{
avcodec_set_dimensions
(
avctx
,
w
,
h
);
}
if
((
ret
=
ff_set_dimensions
(
avctx
,
w
,
h
))
<
0
)
return
ret
;
s
->
desc
=
av_pix_fmt_desc_get
(
avctx
->
pix_fmt
);
out_line_size
=
avctx
->
width
*
2
*
s
->
desc
->
nb_components
;
...
...
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