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
4f10312c
Commit
4f10312c
authored
Jul 25, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indent
Originally committed as revision 14390 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
3f1e1797
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
h264.c
libavcodec/h264.c
+12
-12
No files found.
libavcodec/h264.c
View file @
4f10312c
...
...
@@ -3567,20 +3567,20 @@ static int execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count){
"in complementary field pair "
"(first field is long term)
\n
"
);
}
else
{
pic
=
remove_short
(
h
,
s
->
current_picture_ptr
->
frame_num
);
if
(
pic
){
unreference_pic
(
h
,
pic
,
0
);
av_log
(
h
->
s
.
avctx
,
AV_LOG_ERROR
,
"illegal short term buffer state detected
\n
"
);
}
pic
=
remove_short
(
h
,
s
->
current_picture_ptr
->
frame_num
);
if
(
pic
){
unreference_pic
(
h
,
pic
,
0
);
av_log
(
h
->
s
.
avctx
,
AV_LOG_ERROR
,
"illegal short term buffer state detected
\n
"
);
}
if
(
h
->
short_ref_count
)
memmove
(
&
h
->
short_ref
[
1
],
&
h
->
short_ref
[
0
],
h
->
short_ref_count
*
sizeof
(
Picture
*
));
if
(
h
->
short_ref_count
)
memmove
(
&
h
->
short_ref
[
1
],
&
h
->
short_ref
[
0
],
h
->
short_ref_count
*
sizeof
(
Picture
*
));
h
->
short_ref
[
0
]
=
s
->
current_picture_ptr
;
h
->
short_ref
[
0
]
->
long_ref
=
0
;
h
->
short_ref_count
++
;
s
->
current_picture_ptr
->
reference
|=
s
->
picture_structure
;
}
h
->
short_ref
[
0
]
=
s
->
current_picture_ptr
;
h
->
short_ref
[
0
]
->
long_ref
=
0
;
h
->
short_ref_count
++
;
s
->
current_picture_ptr
->
reference
|=
s
->
picture_structure
;
}
}
if
(
h
->
long_ref_count
+
h
->
short_ref_count
>
h
->
sps
.
ref_frame_count
){
...
...
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