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
30517a9f
Commit
30517a9f
authored
Feb 11, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use av_frame_copy() to simplify code where appropriate.
parent
8feac29c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
libwebpenc.c
libavcodec/libwebpenc.c
+1
-3
vf_copy.c
libavfilter/vf_copy.c
+1
-3
No files found.
libavcodec/libwebpenc.c
View file @
30517a9f
...
@@ -161,9 +161,7 @@ static int libwebp_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
...
@@ -161,9 +161,7 @@ static int libwebp_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
ret
=
av_frame_get_buffer
(
alt_frame
,
32
);
ret
=
av_frame_get_buffer
(
alt_frame
,
32
);
if
(
ret
<
0
)
if
(
ret
<
0
)
goto
end
;
goto
end
;
av_image_copy
(
alt_frame
->
data
,
alt_frame
->
linesize
,
av_frame_copy
(
alt_frame
,
frame
);
frame
->
data
,
frame
->
linesize
,
avctx
->
pix_fmt
,
frame
->
width
,
frame
->
height
);
frame
=
alt_frame
;
frame
=
alt_frame
;
}
}
pic
->
use_argb
=
0
;
pic
->
use_argb
=
0
;
...
...
libavfilter/vf_copy.c
View file @
30517a9f
...
@@ -37,9 +37,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
...
@@ -37,9 +37,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
}
}
av_frame_copy_props
(
out
,
in
);
av_frame_copy_props
(
out
,
in
);
av_image_copy
(
out
->
data
,
out
->
linesize
,
in
->
data
,
in
->
linesize
,
av_frame_copy
(
out
,
in
);
in
->
format
,
in
->
width
,
in
->
height
);
av_frame_free
(
&
in
);
av_frame_free
(
&
in
);
return
ff_filter_frame
(
outlink
,
out
);
return
ff_filter_frame
(
outlink
,
out
);
}
}
...
...
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