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
59c673d5
Commit
59c673d5
authored
Aug 05, 2003
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup / fixes
Originally committed as revision 2103 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
2864dfd5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
h263.c
libavcodec/h263.c
+4
-3
mpegvideo.c
libavcodec/mpegvideo.c
+1
-1
utils.c
libavcodec/utils.c
+1
-0
No files found.
libavcodec/h263.c
View file @
59c673d5
...
...
@@ -4832,13 +4832,13 @@ static int decode_vop_header(MpegEncContext *s, GetBitContext *gb){
check_marker
(
gb
,
"before time_increment"
);
if
(
s
->
picture_number
==
0
&&
(
show_bits
(
gb
,
s
->
time_increment_bits
+
1
)
&
1
)
==
0
){
if
(
s
->
time_increment_bits
==
0
){
printf
(
"hmm, seems the headers arnt complete, trying to guess time_increment_bits
\n
"
);
for
(
s
->
time_increment_bits
=
1
;
s
->
time_increment_bits
<
16
;
s
->
time_increment_bits
++
){
if
(
show_bits
(
gb
,
s
->
time_increment_bits
+
1
)
&
1
)
break
;
}
printf
(
"my guess is %d bits ;)
\n
"
,
s
->
time_increment_bits
);
}
...
...
@@ -5070,7 +5070,8 @@ int ff_mpeg4_decode_picture_header(MpegEncContext * s, GetBitContext *gb)
switch
(
startcode
){
case
0x120
:
decode_vol_header
(
s
,
gb
);
if
(
decode_vol_header
(
s
,
gb
)
<
0
)
return
-
1
;
break
;
case
USER_DATA_STARTCODE
:
decode_user_data
(
s
,
gb
);
...
...
libavcodec/mpegvideo.c
View file @
59c673d5
...
...
@@ -951,7 +951,7 @@ int MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx)
assert
(
s
->
last_picture_ptr
==
NULL
||
s
->
out_format
!=
FMT_H264
||
s
->
codec_id
==
CODEC_ID_SVQ3
);
/* mark&release old frames */
if
(
s
->
pict_type
!=
B_TYPE
&&
s
->
last_picture_ptr
)
{
if
(
s
->
pict_type
!=
B_TYPE
&&
s
->
last_picture_ptr
&&
s
->
last_picture_ptr
->
data
[
0
]
)
{
avctx
->
release_buffer
(
avctx
,
(
AVFrame
*
)
s
->
last_picture_ptr
);
/* release forgotten pictures */
...
...
libavcodec/utils.c
View file @
59c673d5
...
...
@@ -220,6 +220,7 @@ void avcodec_default_release_buffer(AVCodecContext *s, AVFrame *pic){
InternalBuffer
*
buf
,
*
last
,
temp
;
assert
(
pic
->
type
==
FF_BUFFER_TYPE_INTERNAL
);
assert
(
s
->
internal_buffer_count
);
for
(
i
=
0
;
i
<
s
->
internal_buffer_count
;
i
++
){
//just 3-5 checks so is not worth to optimize
buf
=
&
((
InternalBuffer
*
)
s
->
internal_buffer
)[
i
];
...
...
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