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
1df1df0b
Commit
1df1df0b
authored
Sep 09, 2003
by
Fabrice Bellard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed warnings
Originally committed as revision 2246 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
83586795
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
ffv1.c
libavcodec/ffv1.c
+2
-0
h263dec.c
libavcodec/h263dec.c
+1
-1
h264.c
libavcodec/h264.c
+8
-4
No files found.
libavcodec/ffv1.c
View file @
1df1df0b
...
...
@@ -865,6 +865,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8
if
(
bytes_read
==
0
)
printf
(
"error at end of AC stream
\n
"
);
//printf("pos=%d\n", bytes_read);
init_get_bits
(
&
f
->
gb
,
buf
+
bytes_read
,
buf_size
-
bytes_read
);
}
else
{
bytes_read
=
0
;
/* avoid warning */
}
if
(
1
){
...
...
libavcodec/h263dec.c
View file @
1df1df0b
...
...
@@ -390,7 +390,7 @@ int ff_h263_decode_frame(AVCodecContext *avctx,
uint8_t
*
buf
,
int
buf_size
)
{
MpegEncContext
*
s
=
avctx
->
priv_data
;
int
ret
,
i
;
int
ret
;
AVFrame
*
pict
=
data
;
float
new_aspect
;
...
...
libavcodec/h264.c
View file @
1df1df0b
...
...
@@ -380,6 +380,9 @@ static inline void fill_caches(H264Context *h, int mb_type){
if
(
h
->
sps
.
mb_aff
){
//FIXME
topleft_xy
=
0
;
/* avoid warning */
top_xy
=
0
;
/* avoid warning */
topright_xy
=
0
;
/* avoid warning */
}
else
{
topleft_xy
=
mb_xy
-
1
-
s
->
mb_stride
;
top_xy
=
mb_xy
-
s
->
mb_stride
;
...
...
@@ -2925,7 +2928,7 @@ static int decode_slice_header(H264Context *h){
}
if
(
h
->
nal_unit_type
==
NAL_IDR_SLICE
){
int
idr_pic_id
=
get_ue_golomb
(
&
s
->
gb
);
get_ue_golomb
(
&
s
->
gb
);
/* idr_pic_id */
}
if
(
h
->
sps
.
poc_type
==
0
){
...
...
@@ -2988,10 +2991,10 @@ static int decode_slice_header(H264Context *h){
s
->
qscale
=
h
->
pps
.
init_qp
+
get_se_golomb
(
&
s
->
gb
);
//slice_qp_delta
//FIXME qscale / qp ... stuff
if
(
h
->
slice_type
==
SP_TYPE
){
int
sp_for_switch_flag
=
get_bits1
(
&
s
->
gb
);
get_bits1
(
&
s
->
gb
);
/* sp_for_switch_flag */
}
if
(
h
->
slice_type
==
SP_TYPE
||
h
->
slice_type
==
SI_TYPE
){
int
slice_qs_delta
=
get_se_golomb
(
&
s
->
gb
);
get_se_golomb
(
&
s
->
gb
);
/* slice_qs_delta */
}
if
(
h
->
pps
.
deblocking_filter_parameters_present
)
{
...
...
@@ -3198,7 +3201,8 @@ static int decode_mb(H264Context *h){
s
->
dsp
.
clear_blocks
(
h
->
mb
);
//FIXME avoid if allready clear (move after skip handlong?
tprintf
(
"pic:%d mb:%d/%d
\n
"
,
h
->
frame_num
,
s
->
mb_x
,
s
->
mb_y
);
cbp
=
0
;
/* avoid warning. FIXME: find a solution without slowing
down the code */
if
(
h
->
slice_type
!=
I_TYPE
&&
h
->
slice_type
!=
SI_TYPE
){
if
(
s
->
mb_skip_run
==-
1
)
s
->
mb_skip_run
=
get_ue_golomb
(
&
s
->
gb
);
...
...
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