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
fce30d8d
Commit
fce30d8d
authored
Apr 07, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: copy palette in start_frame()
Fix -vf copy with pal8 format.
parent
f2ee0656
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
video.c
libavfilter/video.c
+4
-0
No files found.
libavfilter/video.c
View file @
fce30d8d
...
@@ -230,6 +230,10 @@ void avfilter_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
...
@@ -230,6 +230,10 @@ void avfilter_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
link
->
cur_buf
=
avfilter_get_video_buffer
(
link
,
dst
->
min_perms
,
link
->
w
,
link
->
h
);
link
->
cur_buf
=
avfilter_get_video_buffer
(
link
,
dst
->
min_perms
,
link
->
w
,
link
->
h
);
link
->
src_buf
=
picref
;
link
->
src_buf
=
picref
;
avfilter_copy_buffer_ref_props
(
link
->
cur_buf
,
link
->
src_buf
);
avfilter_copy_buffer_ref_props
(
link
->
cur_buf
,
link
->
src_buf
);
/* copy palette if required */
if
(
av_pix_fmt_descriptors
[
link
->
format
].
flags
&
PIX_FMT_PAL
)
memcpy
(
link
->
cur_buf
->
data
[
1
],
link
->
src_buf
->
data
[
1
],
AVPALETTE_SIZE
);
}
}
else
else
link
->
cur_buf
=
picref
;
link
->
cur_buf
=
picref
;
...
...
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