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
3eaa6d0e
Commit
3eaa6d0e
authored
Jul 19, 2008
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify picture output code.
Originally committed as revision 14298 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
6b476f05
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
h264.c
libavcodec/h264.c
+4
-11
No files found.
libavcodec/h264.c
View file @
3eaa6d0e
...
@@ -7863,28 +7863,21 @@ static int decode_frame(AVCodecContext *avctx,
...
@@ -7863,28 +7863,21 @@ static int decode_frame(AVCodecContext *avctx,
s
->
avctx
->
has_b_frames
++
;
s
->
avctx
->
has_b_frames
++
;
}
}
if
(
out_of_order
||
pics
>
s
->
avctx
->
has_b_frames
)
out
->
reference
&=
~
DELAYED_PIC_REF
;
if
(
pics
<=
s
->
avctx
->
has_b_frames
||
out_of_order
)
out
=
NULL
;
if
(
out_of_order
||
pics
>
s
->
avctx
->
has_b_frames
){
if
(
out_of_order
||
pics
>
s
->
avctx
->
has_b_frames
){
out
->
reference
&=
~
DELAYED_PIC_REF
;
for
(
i
=
out_idx
;
h
->
delayed_pic
[
i
];
i
++
)
for
(
i
=
out_idx
;
h
->
delayed_pic
[
i
];
i
++
)
h
->
delayed_pic
[
i
]
=
h
->
delayed_pic
[
i
+
1
];
h
->
delayed_pic
[
i
]
=
h
->
delayed_pic
[
i
+
1
];
}
}
if
(
!
out_of_order
&&
pics
>
s
->
avctx
->
has_b_frames
){
if
(
out
){
*
data_size
=
sizeof
(
AVFrame
);
*
data_size
=
sizeof
(
AVFrame
);
h
->
outputed_poc
=
out
->
poc
;
h
->
outputed_poc
=
out
->
poc
;
}
if
(
out
)
*
pict
=
*
(
AVFrame
*
)
out
;
*
pict
=
*
(
AVFrame
*
)
out
;
else
}
else
{
av_log
(
avctx
,
AV_LOG_DEBUG
,
"no picture
\n
"
);
av_log
(
avctx
,
AV_LOG_DEBUG
,
"no picture
\n
"
);
}
}
}
}
}
assert
(
pict
->
data
[
0
]
||
!*
data_size
);
assert
(
pict
->
data
[
0
]
||
!*
data_size
);
ff_print_debug_info
(
s
,
pict
);
ff_print_debug_info
(
s
,
pict
);
...
...
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