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
14bc6e63
Commit
14bc6e63
authored
Jul 24, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
Originally committed as revision 2078 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
438fcb75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vcr1.c
libavcodec/vcr1.c
+4
-4
No files found.
libavcodec/vcr1.c
View file @
14bc6e63
...
...
@@ -79,7 +79,7 @@ static int decode_frame(AVCodecContext *avctx,
for
(
i
=
0
;
i
<
4
;
i
++
)
a
->
offset
[
i
]
=
*
(
bytestream
++
);
offset
=
a
->
offset
[
0
];
offset
=
a
->
offset
[
0
]
-
a
->
delta
[
bytestream
[
2
]
&
0xF
]
;
for
(
x
=
0
;
x
<
avctx
->
width
;
x
+=
4
){
luma
[
0
]
=
(
offset
+=
a
->
delta
[
bytestream
[
2
]
&
0xF
]);
luma
[
1
]
=
(
offset
+=
a
->
delta
[
bytestream
[
2
]
>>
4
]);
...
...
@@ -87,13 +87,13 @@ static int decode_frame(AVCodecContext *avctx,
luma
[
3
]
=
(
offset
+=
a
->
delta
[
bytestream
[
0
]
>>
4
]);
luma
+=
4
;
*
(
cb
++
)
=
bytestream
[
1
];
*
(
cr
++
)
=
bytestream
[
3
];
*
(
cb
++
)
=
bytestream
[
3
];
*
(
cr
++
)
=
bytestream
[
1
];
bytestream
+=
4
;
}
}
else
{
offset
=
a
->
offset
[
y
&
3
];
offset
=
a
->
offset
[
y
&
3
]
-
a
->
delta
[
bytestream
[
2
]
&
0xF
]
;
for
(
x
=
0
;
x
<
avctx
->
width
;
x
+=
8
){
luma
[
0
]
=
(
offset
+=
a
->
delta
[
bytestream
[
2
]
&
0xF
]);
...
...
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