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
3a4d3871
Commit
3a4d3871
authored
May 08, 2017
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/ffv1dec: Fix copying planes of paletted formats
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
8b1f66cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
ffv1dec.c
libavcodec/ffv1dec.c
+7
-1
No files found.
libavcodec/ffv1dec.c
View file @
3a4d3871
...
...
@@ -898,7 +898,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac
const
uint8_t
*
src
[
4
];
uint8_t
*
dst
[
4
];
ff_thread_await_progress
(
&
f
->
last_picture
,
INT_MAX
,
0
);
for
(
j
=
0
;
j
<
4
;
j
++
)
{
for
(
j
=
0
;
j
<
desc
->
nb_components
;
j
++
)
{
int
pixshift
=
desc
->
comp
[
j
].
depth
>
8
;
int
sh
=
(
j
==
1
||
j
==
2
)
?
f
->
chroma_h_shift
:
0
;
int
sv
=
(
j
==
1
||
j
==
2
)
?
f
->
chroma_v_shift
:
0
;
...
...
@@ -906,6 +906,12 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac
(
fs
->
slice_y
>>
sv
)
+
((
fs
->
slice_x
>>
sh
)
<<
pixshift
);
src
[
j
]
=
f
->
last_picture
.
f
->
data
[
j
]
+
f
->
last_picture
.
f
->
linesize
[
j
]
*
(
fs
->
slice_y
>>
sv
)
+
((
fs
->
slice_x
>>
sh
)
<<
pixshift
);
}
if
(
desc
->
flags
&
AV_PIX_FMT_FLAG_PAL
||
desc
->
flags
&
AV_PIX_FMT_FLAG_PSEUDOPAL
)
{
dst
[
1
]
=
p
->
data
[
1
];
src
[
1
]
=
f
->
last_picture
.
f
->
data
[
1
];
}
av_image_copy
(
dst
,
p
->
linesize
,
src
,
f
->
last_picture
.
f
->
linesize
,
...
...
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