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
4e2e3d94
Commit
4e2e3d94
authored
Oct 17, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffv1: fix packed rgb with 1.3
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
adbb75db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
ffv1.c
libavcodec/ffv1.c
+10
-2
No files found.
libavcodec/ffv1.c
View file @
4e2e3d94
...
...
@@ -1237,7 +1237,11 @@ static int encode_slice(AVCodecContext *c, void *arg){
int
x
=
fs
->
slice_x
;
int
y
=
fs
->
slice_y
;
AVFrame
*
const
p
=
&
f
->
picture
;
const
int
ps
=
(
f
->
bits_per_raw_sample
>
8
)
+
1
;
const
int
ps
=
(
av_pix_fmt_desc_get
(
c
->
pix_fmt
)
->
flags
&
PIX_FMT_PLANAR
)
?
(
f
->
bits_per_raw_sample
>
8
)
+
1
:
4
;
if
(
p
->
key_frame
)
clear_slice_state
(
f
,
fs
);
...
...
@@ -1657,7 +1661,11 @@ static int decode_slice(AVCodecContext *c, void *arg){
FFV1Context
*
fs
=
*
(
void
**
)
arg
;
FFV1Context
*
f
=
fs
->
avctx
->
priv_data
;
int
width
,
height
,
x
,
y
;
const
int
ps
=
(
c
->
bits_per_raw_sample
>
8
)
+
1
;
const
int
ps
=
(
av_pix_fmt_desc_get
(
c
->
pix_fmt
)
->
flags
&
PIX_FMT_PLANAR
)
?
(
c
->
bits_per_raw_sample
>
8
)
+
1
:
4
;
AVFrame
*
const
p
=
&
f
->
picture
;
if
(
f
->
version
>
2
){
...
...
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