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
ef466a8b
Commit
ef466a8b
authored
Nov 16, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_framepack: fix timestamps for frameseq format
parent
d52342a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
vf_framepack.c
libavfilter/vf_framepack.c
+3
-7
No files found.
libavfilter/vf_framepack.c
View file @
ef466a8b
...
...
@@ -48,8 +48,6 @@ typedef struct FramepackContext {
enum
AVStereo3DType
format
;
///< frame pack type output
AVFrame
*
input_views
[
2
];
///< input frames
int64_t
double_pts
;
///< new pts for frameseq mode
}
FramepackContext
;
static
const
enum
AVPixelFormat
formats_supported
[]
=
{
...
...
@@ -120,8 +118,6 @@ static int config_output(AVFilterLink *outlink)
case
AV_STEREO3D_FRAMESEQUENCE
:
time_base
.
den
*=
2
;
frame_rate
.
num
*=
2
;
s
->
double_pts
=
AV_NOPTS_VALUE
;
break
;
case
AV_STEREO3D_COLUMNS
:
case
AV_STEREO3D_SIDEBYSIDE
:
...
...
@@ -312,12 +308,12 @@ static int try_push_frame(AVFilterContext *ctx)
if
(
!
(
s
->
input_views
[
0
]
&&
s
->
input_views
[
1
]))
return
0
;
if
(
s
->
format
==
AV_STEREO3D_FRAMESEQUENCE
)
{
if
(
s
->
double_pts
==
AV_NOPTS_VALUE
)
s
->
double_pts
=
s
->
input_views
[
LEFT
]
->
pts
;
int64_t
pts
=
s
->
input_views
[
0
]
->
pts
;
for
(
i
=
0
;
i
<
2
;
i
++
)
{
// set correct timestamps
s
->
input_views
[
i
]
->
pts
=
s
->
double_pts
++
;
if
(
pts
!=
AV_NOPTS_VALUE
)
s
->
input_views
[
i
]
->
pts
=
i
==
0
?
pts
*
2
:
s
->
input_views
[
1
]
->
pts
+
pts
;
// set stereo3d side data
stereo
=
av_stereo3d_create_side_data
(
s
->
input_views
[
i
]);
...
...
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