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
84278104
Commit
84278104
authored
Nov 01, 2006
by
Måns Rullgård
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CODEC_CAP_DELAY support
Originally committed as revision 6856 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
f45b744c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
x264.c
libavcodec/x264.c
+5
-1
No files found.
libavcodec/x264.c
View file @
84278104
...
...
@@ -78,6 +78,7 @@ X264_frame(AVCodecContext *ctx, uint8_t *buf, int bufsize, void *data)
x4
->
pic
.
img
.
i_csp
=
X264_CSP_I420
;
x4
->
pic
.
img
.
i_plane
=
3
;
if
(
frame
)
{
for
(
i
=
0
;
i
<
3
;
i
++
){
x4
->
pic
.
img
.
plane
[
i
]
=
frame
->
data
[
i
];
x4
->
pic
.
img
.
i_stride
[
i
]
=
frame
->
linesize
[
i
];
...
...
@@ -85,8 +86,10 @@ X264_frame(AVCodecContext *ctx, uint8_t *buf, int bufsize, void *data)
x4
->
pic
.
i_pts
=
frame
->
pts
;
x4
->
pic
.
i_type
=
X264_TYPE_AUTO
;
}
if
(
x264_encoder_encode
(
x4
->
enc
,
&
nal
,
&
nnal
,
&
x4
->
pic
,
&
pic_out
))
if
(
x264_encoder_encode
(
x4
->
enc
,
&
nal
,
&
nnal
,
frame
?
&
x4
->
pic
:
NULL
,
&
pic_out
))
return
-
1
;
bufsize
=
encode_nals
(
buf
,
bufsize
,
nal
,
nnal
);
...
...
@@ -291,5 +294,6 @@ AVCodec x264_encoder = {
.
init
=
X264_init
,
.
encode
=
X264_frame
,
.
close
=
X264_close
,
.
capabilities
=
CODEC_CAP_DELAY
,
.
pix_fmts
=
(
enum
PixelFormat
[])
{
PIX_FMT_YUV420P
,
-
1
}
};
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