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
76f2a12f
Commit
76f2a12f
authored
Jul 02, 2006
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unneeded casts
Originally committed as revision 5569 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
3dd46a29
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
cavs.c
libavcodec/cavs.c
+5
-5
No files found.
libavcodec/cavs.c
View file @
76f2a12f
...
@@ -395,7 +395,7 @@ static void intra_pred_lp_top(uint8_t *d,uint8_t *top,uint8_t *left,int stride)
...
@@ -395,7 +395,7 @@ static void intra_pred_lp_top(uint8_t *d,uint8_t *top,uint8_t *left,int stride)
#undef LOWPASS
#undef LOWPASS
static
inline
void
modify_pred
(
const
int8_t
*
mod_table
,
int
*
mode
)
{
static
inline
void
modify_pred
(
const
int8_t
*
mod_table
,
int
*
mode
)
{
int
newmode
=
mod_table
[
(
int
)
*
mode
];
int
newmode
=
mod_table
[
*
mode
];
if
(
newmode
<
0
)
{
if
(
newmode
<
0
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"Illegal intra prediction mode
\n
"
);
av_log
(
NULL
,
AV_LOG_ERROR
,
"Illegal intra prediction mode
\n
"
);
*
mode
=
0
;
*
mode
=
0
;
...
@@ -913,7 +913,7 @@ static void decode_mb_i(AVSContext *h, int is_i_pic) {
...
@@ -913,7 +913,7 @@ static void decode_mb_i(AVSContext *h, int is_i_pic) {
for
(
block
=
0
;
block
<
4
;
block
++
)
{
for
(
block
=
0
;
block
<
4
;
block
++
)
{
d
=
h
->
cy
+
h
->
luma_scan
[
block
];
d
=
h
->
cy
+
h
->
luma_scan
[
block
];
load_intra_pred_luma
(
h
,
top
,
left
,
block
);
load_intra_pred_luma
(
h
,
top
,
left
,
block
);
h
->
intra_pred_l
[
(
int
)
h
->
pred_mode_Y
[
scan3x3
[
block
]]]
h
->
intra_pred_l
[
h
->
pred_mode_Y
[
scan3x3
[
block
]]]
(
d
,
top
,
left
,
h
->
l_stride
);
(
d
,
top
,
left
,
h
->
l_stride
);
if
(
h
->
cbp
&
(
1
<<
block
))
if
(
h
->
cbp
&
(
1
<<
block
))
decode_residual_block
(
h
,
gb
,
intra_2dvlc
,
1
,
h
->
qp
,
d
,
h
->
l_stride
);
decode_residual_block
(
h
,
gb
,
intra_2dvlc
,
1
,
h
->
qp
,
d
,
h
->
l_stride
);
...
@@ -1407,7 +1407,7 @@ int ff_cavs_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size) {
...
@@ -1407,7 +1407,7 @@ int ff_cavs_find_frame_end(ParseContext *pc, const uint8_t *buf, int buf_size) {
}
}
void
ff_cavs_flush
(
AVCodecContext
*
avctx
)
{
void
ff_cavs_flush
(
AVCodecContext
*
avctx
)
{
AVSContext
*
h
=
(
AVSContext
*
)
avctx
->
priv_data
;
AVSContext
*
h
=
avctx
->
priv_data
;
h
->
got_keyframe
=
0
;
h
->
got_keyframe
=
0
;
}
}
...
@@ -1487,7 +1487,7 @@ static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size,
...
@@ -1487,7 +1487,7 @@ static int cavs_decode_frame(AVCodecContext * avctx,void *data, int *data_size,
}
}
static
int
cavs_decode_init
(
AVCodecContext
*
avctx
)
{
static
int
cavs_decode_init
(
AVCodecContext
*
avctx
)
{
AVSContext
*
h
=
(
AVSContext
*
)
avctx
->
priv_data
;
AVSContext
*
h
=
avctx
->
priv_data
;
MpegEncContext
*
const
s
=
&
h
->
s
;
MpegEncContext
*
const
s
=
&
h
->
s
;
MPV_decode_defaults
(
s
);
MPV_decode_defaults
(
s
);
...
@@ -1518,7 +1518,7 @@ static int cavs_decode_init(AVCodecContext * avctx) {
...
@@ -1518,7 +1518,7 @@ static int cavs_decode_init(AVCodecContext * avctx) {
}
}
static
int
cavs_decode_end
(
AVCodecContext
*
avctx
)
{
static
int
cavs_decode_end
(
AVCodecContext
*
avctx
)
{
AVSContext
*
h
=
(
AVSContext
*
)
avctx
->
priv_data
;
AVSContext
*
h
=
avctx
->
priv_data
;
av_free
(
h
->
top_qp
);
av_free
(
h
->
top_qp
);
av_free
(
h
->
top_mv
[
0
]);
av_free
(
h
->
top_mv
[
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