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
f13fe602
Commit
f13fe602
authored
Aug 13, 2013
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtjpeg: Use init_get_bits8
CC:libav-stable@libav.org
parent
62cc7a91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
rtjpeg.c
libavcodec/rtjpeg.c
+5
-2
No files found.
libavcodec/rtjpeg.c
View file @
f13fe602
...
...
@@ -107,10 +107,13 @@ int ff_rtjpeg_decode_frame_yuv420(RTJpegContext *c, AVFrame *f,
const
uint8_t
*
buf
,
int
buf_size
)
{
GetBitContext
gb
;
int
w
=
c
->
w
/
16
,
h
=
c
->
h
/
16
;
int
x
,
y
;
int
x
,
y
,
ret
;
uint8_t
*
y1
=
f
->
data
[
0
],
*
y2
=
f
->
data
[
0
]
+
8
*
f
->
linesize
[
0
];
uint8_t
*
u
=
f
->
data
[
1
],
*
v
=
f
->
data
[
2
];
init_get_bits
(
&
gb
,
buf
,
buf_size
*
8
);
if
((
ret
=
init_get_bits8
(
&
gb
,
buf
,
buf_size
))
<
0
)
return
ret
;
for
(
y
=
0
;
y
<
h
;
y
++
)
{
for
(
x
=
0
;
x
<
w
;
x
++
)
{
#define BLOCK(quant, dst, stride) do { \
...
...
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