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
506ffa79
Commit
506ffa79
authored
Jul 26, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264_cabac: switch to av_assert
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
7a4e30f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
h264_cavlc.c
libavcodec/h264_cavlc.c
+6
-7
No files found.
libavcodec/h264_cavlc.c
View file @
506ffa79
...
...
@@ -35,9 +35,8 @@
#include "h264data.h" // FIXME FIXME FIXME
#include "h264_mvpred.h"
#include "golomb.h"
#include "libavutil/avassert.h"
//#undef NDEBUG
#include <assert.h>
static
const
uint8_t
golomb_to_inter_cbp_gray
[
16
]
=
{
0
,
1
,
2
,
4
,
8
,
3
,
5
,
10
,
12
,
15
,
7
,
11
,
13
,
14
,
6
,
9
,
...
...
@@ -481,7 +480,7 @@ static int decode_residual(H264Context *h, GetBitContext *gb, DCTELEM *block, in
trailing_ones
=
coeff_token
&
3
;
tprintf
(
h
->
s
.
avctx
,
"trailing:%d, total:%d
\n
"
,
trailing_ones
,
total_coeff
);
a
ssert
(
total_coeff
<=
16
);
a
v_assert2
(
total_coeff
<=
16
);
i
=
show_bits
(
gb
,
3
);
skip_bits
(
gb
,
trailing_ones
);
...
...
@@ -639,7 +638,7 @@ static av_always_inline int decode_luma_residual(H264Context *h, GetBitContext *
return
-
1
;
//FIXME continue if partitioned and other return -1 too
}
a
ssert
((
cbp
&
15
)
==
0
||
(
cbp
&
15
)
==
15
);
a
v_assert2
((
cbp
&
15
)
==
0
||
(
cbp
&
15
)
==
15
);
if
(
cbp
&
15
){
for
(
i8x8
=
0
;
i8x8
<
4
;
i8x8
++
){
...
...
@@ -745,7 +744,7 @@ int ff_h264_decode_mb_cavlc(H264Context *h){
goto
decode_intra_mb
;
}
}
else
{
a
ssert
(
h
->
slice_type_nos
==
AV_PICTURE_TYPE_I
);
a
v_assert2
(
h
->
slice_type_nos
==
AV_PICTURE_TYPE_I
);
if
(
h
->
slice_type
==
AV_PICTURE_TYPE_SI
&&
mb_type
)
mb_type
--
;
decode_intra_mb
:
...
...
@@ -857,7 +856,7 @@ decode_intra_mb:
h
->
ref_cache
[
1
][
scan8
[
12
]]
=
PART_NOT_AVAILABLE
;
}
}
else
{
a
ssert
(
h
->
slice_type_nos
==
AV_PICTURE_TYPE_P
);
//FIXME SP correct ?
a
v_assert2
(
h
->
slice_type_nos
==
AV_PICTURE_TYPE_P
);
//FIXME SP correct ?
for
(
i
=
0
;
i
<
4
;
i
++
){
h
->
sub_mb_type
[
i
]
=
get_ue_golomb_31
(
&
s
->
gb
);
if
(
h
->
sub_mb_type
[
i
]
>=
4
){
...
...
@@ -1012,7 +1011,7 @@ decode_intra_mb:
}
}
}
else
{
a
ssert
(
IS_8X16
(
mb_type
));
a
v_assert2
(
IS_8X16
(
mb_type
));
for
(
list
=
0
;
list
<
h
->
list_count
;
list
++
){
for
(
i
=
0
;
i
<
2
;
i
++
){
unsigned
int
val
;
...
...
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