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
13bddab7
Commit
13bddab7
authored
Oct 14, 2015
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nuv: Replace avpicture functions with imgutils
Signed-off-by:
Vittorio Giovara
<
vittorio.giovara@gmail.com
>
parent
48c06386
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
nuv.c
libavcodec/nuv.c
+6
-3
No files found.
libavcodec/nuv.c
View file @
13bddab7
...
...
@@ -74,9 +74,12 @@ static const uint8_t fallback_cquant[] = {
*/
static
void
copy_frame
(
AVFrame
*
f
,
const
uint8_t
*
src
,
int
width
,
int
height
)
{
AVPicture
pic
;
avpicture_fill
(
&
pic
,
src
,
AV_PIX_FMT_YUV420P
,
width
,
height
);
av_picture_copy
((
AVPicture
*
)
f
,
&
pic
,
AV_PIX_FMT_YUV420P
,
width
,
height
);
uint8_t
*
src_data
[
4
];
int
src_linesize
[
4
];
av_image_fill_arrays
(
src_data
,
src_linesize
,
src
,
f
->
format
,
width
,
height
,
1
);
av_image_copy
(
f
->
data
,
f
->
linesize
,
src_data
,
src_linesize
,
f
->
format
,
width
,
height
);
}
/**
...
...
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