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
6d93308c
Commit
6d93308c
authored
Nov 11, 2012
by
Kostya Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mss2: reindent after last commit
parent
b077eb07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
34 deletions
+34
-34
mss2.c
libavcodec/mss2.c
+34
-34
No files found.
libavcodec/mss2.c
View file @
6d93308c
...
...
@@ -657,54 +657,54 @@ static int mss2_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
if
(
c
->
slice_split
)
ff_mss12_slicecontext_reset
(
&
ctx
->
sc
[
1
]);
}
if
(
is_rle
)
{
init_get_bits
(
&
gb
,
buf
,
buf_size
*
8
);
if
(
ret
=
decode_rle
(
&
gb
,
c
->
pal_pic
,
c
->
pal_stride
,
c
->
rgb_pic
,
c
->
rgb_stride
,
c
->
pal
,
keyframe
,
ctx
->
split_position
,
0
,
avctx
->
width
,
avctx
->
height
))
return
ret
;
align_get_bits
(
&
gb
);
if
(
c
->
slice_split
)
if
(
is_rle
)
{
init_get_bits
(
&
gb
,
buf
,
buf_size
*
8
);
if
(
ret
=
decode_rle
(
&
gb
,
c
->
pal_pic
,
c
->
pal_stride
,
c
->
rgb_pic
,
c
->
rgb_stride
,
c
->
pal
,
keyframe
,
ctx
->
split_position
,
1
,
ctx
->
split_position
,
0
,
avctx
->
width
,
avctx
->
height
))
return
ret
;
align_get_bits
(
&
gb
);
align_get_bits
(
&
gb
);
buf
+=
get_bits_count
(
&
gb
)
>>
3
;
buf_size
-=
get_bits_count
(
&
gb
)
>>
3
;
}
else
if
(
!
implicit_rect
||
wmv9_mask
!=
-
1
)
{
if
(
c
->
corrupted
)
return
AVERROR_INVALIDDATA
;
bytestream2_init
(
&
gB
,
buf
,
buf_size
+
ARITH2_PADDING
);
arith2_init
(
&
acoder
,
&
gB
);
c
->
keyframe
=
keyframe
;
if
(
c
->
corrupted
=
ff_mss12_decode_rect
(
&
ctx
->
sc
[
0
],
&
acoder
,
0
,
0
,
avctx
->
width
,
ctx
->
split_position
))
return
AVERROR_INVALIDDATA
;
if
(
c
->
slice_split
)
if
(
ret
=
decode_rle
(
&
gb
,
c
->
pal_pic
,
c
->
pal_stride
,
c
->
rgb_pic
,
c
->
rgb_stride
,
c
->
pal
,
keyframe
,
ctx
->
split_position
,
1
,
avctx
->
width
,
avctx
->
height
))
return
ret
;
buf
+=
arith2_get_consumed_bytes
(
&
acoder
);
buf_size
-=
arith2_get_consumed_bytes
(
&
acoder
);
if
(
c
->
slice_split
)
{
if
(
buf_size
<
1
)
align_get_bits
(
&
gb
);
buf
+=
get_bits_count
(
&
gb
)
>>
3
;
buf_size
-=
get_bits_count
(
&
gb
)
>>
3
;
}
else
if
(
!
implicit_rect
||
wmv9_mask
!=
-
1
)
{
if
(
c
->
corrupted
)
return
AVERROR_INVALIDDATA
;
bytestream2_init
(
&
gB
,
buf
,
buf_size
+
ARITH2_PADDING
);
arith2_init
(
&
acoder
,
&
gB
);
if
(
c
->
corrupted
=
ff_mss12_decode_rect
(
&
ctx
->
sc
[
1
],
&
acoder
,
0
,
ctx
->
split_position
,
c
->
keyframe
=
keyframe
;
if
(
c
->
corrupted
=
ff_mss12_decode_rect
(
&
ctx
->
sc
[
0
],
&
acoder
,
0
,
0
,
avctx
->
width
,
avctx
->
height
-
ctx
->
split_position
))
ctx
->
split_position
))
return
AVERROR_INVALIDDATA
;
buf
+=
arith2_get_consumed_bytes
(
&
acoder
);
buf_size
-=
arith2_get_consumed_bytes
(
&
acoder
);
}
}
else
memset
(
c
->
pal_pic
,
0
,
c
->
pal_stride
*
avctx
->
height
);
if
(
c
->
slice_split
)
{
if
(
buf_size
<
1
)
return
AVERROR_INVALIDDATA
;
bytestream2_init
(
&
gB
,
buf
,
buf_size
+
ARITH2_PADDING
);
arith2_init
(
&
acoder
,
&
gB
);
if
(
c
->
corrupted
=
ff_mss12_decode_rect
(
&
ctx
->
sc
[
1
],
&
acoder
,
0
,
ctx
->
split_position
,
avctx
->
width
,
avctx
->
height
-
ctx
->
split_position
))
return
AVERROR_INVALIDDATA
;
buf
+=
arith2_get_consumed_bytes
(
&
acoder
);
buf_size
-=
arith2_get_consumed_bytes
(
&
acoder
);
}
}
else
memset
(
c
->
pal_pic
,
0
,
c
->
pal_stride
*
avctx
->
height
);
}
if
(
has_wmv9
)
{
...
...
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