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
f6f32fc9
Commit
f6f32fc9
authored
Oct 01, 2015
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qsvenc: set the timestamp for PIX_FMT_QSV frames as well
parent
772c87c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
qsvenc.c
libavcodec/qsvenc.c
+4
-5
No files found.
libavcodec/qsvenc.c
View file @
f6f32fc9
...
...
@@ -332,10 +332,7 @@ static int submit_frame(QSVEncContext *q, const AVFrame *frame,
return
ret
;
qf
->
surface
=
(
mfxFrameSurface1
*
)
qf
->
frame
->
data
[
3
];
*
surface
=
qf
->
surface
;
return
0
;
}
}
else
{
/* make a copy if the input is not padded as libmfx requires */
if
(
frame
->
height
&
31
||
frame
->
linesize
[
0
]
&
(
q
->
width_align
-
1
))
{
qf
->
frame
->
height
=
FFALIGN
(
frame
->
height
,
32
);
...
...
@@ -374,9 +371,11 @@ static int submit_frame(QSVEncContext *q, const AVFrame *frame,
qf
->
surface_internal
.
Data
.
PitchLow
=
qf
->
frame
->
linesize
[
0
];
qf
->
surface_internal
.
Data
.
Y
=
qf
->
frame
->
data
[
0
];
qf
->
surface_internal
.
Data
.
UV
=
qf
->
frame
->
data
[
1
];
qf
->
surface_internal
.
Data
.
TimeStamp
=
av_rescale_q
(
frame
->
pts
,
q
->
avctx
->
time_base
,
(
AVRational
){
1
,
90000
});
qf
->
surface
=
&
qf
->
surface_internal
;
}
qf
->
surface
->
Data
.
TimeStamp
=
av_rescale_q
(
frame
->
pts
,
q
->
avctx
->
time_base
,
(
AVRational
){
1
,
90000
});
*
surface
=
qf
->
surface
;
...
...
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