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
3b086317
Commit
3b086317
authored
Oct 27, 2013
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h26[13]dec: stop using deprecated avcodec_set_dimensions
parent
8255535c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
h261dec.c
libavcodec/h261dec.c
+4
-1
h263dec.c
libavcodec/h263dec.c
+3
-1
No files found.
libavcodec/h261dec.c
View file @
3b086317
...
...
@@ -29,6 +29,7 @@
#include "mpegvideo.h"
#include "h263.h"
#include "h261.h"
#include "internal.h"
#define H261_MBA_VLC_BITS 9
#define H261_MTYPE_VLC_BITS 6
...
...
@@ -607,7 +608,9 @@ retry:
s
->
parse_context
=
pc
;
}
if
(
!
s
->
context_initialized
)
{
avcodec_set_dimensions
(
avctx
,
s
->
width
,
s
->
height
);
ret
=
ff_set_dimensions
(
avctx
,
s
->
width
,
s
->
height
);
if
(
ret
<
0
)
return
ret
;
goto
retry
;
}
...
...
libavcodec/h263dec.c
View file @
3b086317
...
...
@@ -600,7 +600,9 @@ int ff_h263_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
/* H.263 could change picture size any time */
s
->
context_reinit
=
0
;
avcodec_set_dimensions
(
avctx
,
s
->
width
,
s
->
height
);
ret
=
ff_set_dimensions
(
avctx
,
s
->
width
,
s
->
height
);
if
(
ret
<
0
)
return
ret
;
if
((
ret
=
ff_MPV_common_frame_size_change
(
s
)))
return
ret
;
...
...
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