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
2cd94ad5
Commit
2cd94ad5
authored
Oct 27, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mjpegdec: stop using deprecated avcodec_set_dimensions
parent
b8705824
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
mjpegdec.c
libavcodec/mjpegdec.c
+4
-2
No files found.
libavcodec/mjpegdec.c
View file @
2cd94ad5
...
@@ -211,7 +211,7 @@ int ff_mjpeg_decode_dht(MJpegDecodeContext *s)
...
@@ -211,7 +211,7 @@ int ff_mjpeg_decode_dht(MJpegDecodeContext *s)
int
ff_mjpeg_decode_sof
(
MJpegDecodeContext
*
s
)
int
ff_mjpeg_decode_sof
(
MJpegDecodeContext
*
s
)
{
{
int
len
,
nb_components
,
i
,
width
,
height
,
pix_fmt_id
;
int
len
,
nb_components
,
i
,
width
,
height
,
pix_fmt_id
,
ret
;
/* XXX: verify len field validity */
/* XXX: verify len field validity */
len
=
get_bits
(
&
s
->
gb
,
16
);
len
=
get_bits
(
&
s
->
gb
,
16
);
...
@@ -309,7 +309,9 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
...
@@ -309,7 +309,9 @@ int ff_mjpeg_decode_sof(MJpegDecodeContext *s)
height
*=
2
;
height
*=
2
;
}
}
avcodec_set_dimensions
(
s
->
avctx
,
width
,
height
);
ret
=
ff_set_dimensions
(
s
->
avctx
,
width
,
height
);
if
(
ret
<
0
)
return
ret
;
s
->
first_picture
=
0
;
s
->
first_picture
=
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