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
e3f384b4
Commit
e3f384b4
authored
Nov 05, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/mss2: use init_get_bits8()
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
82f5c4d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
mss2.c
libavcodec/mss2.c
+6
-3
No files found.
libavcodec/mss2.c
View file @
e3f384b4
...
@@ -384,7 +384,8 @@ static int decode_wmv9(AVCodecContext *avctx, const uint8_t *buf, int buf_size,
...
@@ -384,7 +384,8 @@ static int decode_wmv9(AVCodecContext *avctx, const uint8_t *buf, int buf_size,
s
->
current_picture_ptr
=
&
s
->
picture
[
i
];
s
->
current_picture_ptr
=
&
s
->
picture
[
i
];
}
}
init_get_bits
(
&
s
->
gb
,
buf
,
buf_size
*
8
);
if
((
ret
=
init_get_bits8
(
&
s
->
gb
,
buf
,
buf_size
))
<
0
)
return
ret
;
s
->
loop_filter
=
avctx
->
skip_loop_filter
<
AVDISCARD_ALL
;
s
->
loop_filter
=
avctx
->
skip_loop_filter
<
AVDISCARD_ALL
;
...
@@ -482,7 +483,8 @@ static int mss2_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
...
@@ -482,7 +483,8 @@ static int mss2_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
av_assert0
(
FF_INPUT_BUFFER_PADDING_SIZE
>=
av_assert0
(
FF_INPUT_BUFFER_PADDING_SIZE
>=
ARITH2_PADDING
+
(
MIN_CACHE_BITS
+
7
)
/
8
);
ARITH2_PADDING
+
(
MIN_CACHE_BITS
+
7
)
/
8
);
init_get_bits
(
&
gb
,
buf
,
buf_size
*
8
);
if
((
ret
=
init_get_bits8
(
&
gb
,
buf
,
buf_size
))
<
0
)
return
ret
;
if
(
keyframe
=
get_bits1
(
&
gb
))
if
(
keyframe
=
get_bits1
(
&
gb
))
skip_bits
(
&
gb
,
7
);
skip_bits
(
&
gb
,
7
);
...
@@ -640,7 +642,8 @@ static int mss2_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
...
@@ -640,7 +642,8 @@ static int mss2_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
ff_mss12_slicecontext_reset
(
&
ctx
->
sc
[
1
]);
ff_mss12_slicecontext_reset
(
&
ctx
->
sc
[
1
]);
}
}
if
(
is_rle
)
{
if
(
is_rle
)
{
init_get_bits
(
&
gb
,
buf
,
buf_size
*
8
);
if
((
ret
=
init_get_bits8
(
&
gb
,
buf
,
buf_size
))
<
0
)
return
ret
;
if
(
ret
=
decode_rle
(
&
gb
,
c
->
pal_pic
,
c
->
pal_stride
,
if
(
ret
=
decode_rle
(
&
gb
,
c
->
pal_pic
,
c
->
pal_stride
,
c
->
rgb_pic
,
c
->
rgb_stride
,
c
->
pal
,
keyframe
,
c
->
rgb_pic
,
c
->
rgb_stride
,
c
->
pal
,
keyframe
,
ctx
->
split_position
,
0
,
ctx
->
split_position
,
0
,
...
...
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