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
afe950e1
Commit
afe950e1
authored
Apr 06, 2017
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/bitpacked: Fix mixed declarations and statement
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
0e2f0fed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bitpacked.c
libavcodec/bitpacked.c
+2
-2
No files found.
libavcodec/bitpacked.c
View file @
afe950e1
...
...
@@ -62,7 +62,7 @@ static int bitpacked_decode_yuv422p10(AVCodecContext *avctx, AVFrame *frame,
uint64_t
packet_size
=
(
uint64_t
)
avpkt
->
size
*
8
;
GetBitContext
bc
;
uint16_t
*
y
,
*
u
,
*
v
;
int
ret
,
i
;
int
ret
,
i
,
j
;
ret
=
ff_get_buffer
(
avctx
,
frame
,
0
);
if
(
ret
<
0
)
...
...
@@ -87,7 +87,7 @@ static int bitpacked_decode_yuv422p10(AVCodecContext *avctx, AVFrame *frame,
u
=
(
uint16_t
*
)(
frame
->
data
[
1
]
+
i
*
frame
->
linesize
[
1
]);
v
=
(
uint16_t
*
)(
frame
->
data
[
2
]
+
i
*
frame
->
linesize
[
2
]);
for
(
int
j
=
0
;
j
<
avctx
->
width
;
j
+=
2
)
{
for
(
j
=
0
;
j
<
avctx
->
width
;
j
+=
2
)
{
*
u
++
=
get_bits
(
&
bc
,
10
);
*
y
++
=
get_bits
(
&
bc
,
10
);
*
v
++
=
get_bits
(
&
bc
,
10
);
...
...
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