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
8db62f04
Commit
8db62f04
authored
Sep 28, 2015
by
Arttu Ylä-Outinen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libkvazaar: Set pts and dts
Signed-off-by:
Arttu Ylä-Outinen
<
arttu.yla-outinen@tut.fi
>
parent
c09419ca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
libkvazaar.c
libavcodec/libkvazaar.c
+8
-1
No files found.
libavcodec/libkvazaar.c
View file @
8db62f04
...
...
@@ -141,6 +141,7 @@ static int libkvazaar_encode(AVCodecContext *avctx,
kvz_data_chunk
*
data_out
=
NULL
;
uint32_t
len_out
=
0
;
kvz_picture
*
recon_pic
=
NULL
;
kvz_frame_info
frame_info
;
LibkvazaarContext
*
ctx
=
avctx
->
priv_data
;
...
...
@@ -192,11 +193,13 @@ static int libkvazaar_encode(AVCodecContext *avctx,
dst
+=
width
;
}
}
img_in
->
pts
=
frame
->
pts
;
}
if
(
!
ctx
->
api
->
encoder_encode
(
ctx
->
encoder
,
img_in
,
&
data_out
,
&
len_out
,
NULL
,
NULL
,
&
recon_pic
,
NULL
,
&
frame_info
))
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Failed to encode frame.
\n
"
);
retval
=
AVERROR_EXTERNAL
;
...
...
@@ -223,6 +226,9 @@ static int libkvazaar_encode(AVCodecContext *avctx,
ctx
->
api
->
chunk_free
(
data_out
);
data_out
=
NULL
;
avpkt
->
pts
=
recon_pic
->
pts
;
avpkt
->
dts
=
recon_pic
->
dts
;
avpkt
->
flags
=
0
;
// IRAP VCL NAL unit types span the range
// [BLA_W_LP (16), RSV_IRAP_VCL23 (23)].
...
...
@@ -234,6 +240,7 @@ static int libkvazaar_encode(AVCodecContext *avctx,
done:
ctx
->
api
->
picture_free
(
img_in
);
ctx
->
api
->
picture_free
(
recon_pic
);
ctx
->
api
->
chunk_free
(
data_out
);
return
retval
;
}
...
...
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