Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
deff27e2
Commit
deff27e2
authored
Jul 15, 2013
by
Aric Stewart
Committed by
Alexandre Julliard
Jul 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineqtdecoder: Calculate AvgTimePerFrame for video tracks.
parent
0a2085f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
qtsplitter.c
dlls/wineqtdecoder/qtsplitter.c
+10
-0
No files found.
dlls/wineqtdecoder/qtsplitter.c
View file @
deff27e2
...
@@ -884,6 +884,10 @@ static HRESULT QT_Process_Video_Track(QTSplitter* filter, Track trk)
...
@@ -884,6 +884,10 @@ static HRESULT QT_Process_Video_Track(QTSplitter* filter, Track trk)
int
t
;
int
t
;
DWORD
outputWidth
,
outputHeight
,
outputDepth
;
DWORD
outputWidth
,
outputHeight
,
outputDepth
;
Fixed
trackWidth
,
trackHeight
;
Fixed
trackWidth
,
trackHeight
;
Media
videoMedia
;
long
sampleCount
;
TimeValue64
duration
;
TimeScale
timeScale
;
ZeroMemory
(
&
amt
,
sizeof
(
amt
));
ZeroMemory
(
&
amt
,
sizeof
(
amt
));
amt
.
formattype
=
FORMAT_VideoInfo
;
amt
.
formattype
=
FORMAT_VideoInfo
;
...
@@ -952,6 +956,12 @@ static HRESULT QT_Process_Video_Track(QTSplitter* filter, Track trk)
...
@@ -952,6 +956,12 @@ static HRESULT QT_Process_Video_Track(QTSplitter* filter, Track trk)
return
E_FAIL
;
return
E_FAIL
;
}
}
videoMedia
=
GetTrackMedia
(
trk
);
sampleCount
=
GetMediaSampleCount
(
videoMedia
);
timeScale
=
GetMediaTimeScale
(
videoMedia
);
duration
=
GetMediaDisplayDuration
(
videoMedia
);
pvi
->
AvgTimePerFrame
=
(
100000
.
0
*
sampleCount
*
timeScale
)
/
duration
;
piOutput
.
dir
=
PINDIR_OUTPUT
;
piOutput
.
dir
=
PINDIR_OUTPUT
;
piOutput
.
pFilter
=
&
filter
->
filter
.
IBaseFilter_iface
;
piOutput
.
pFilter
=
&
filter
->
filter
.
IBaseFilter_iface
;
lstrcpyW
(
piOutput
.
achName
,
szwVideoOut
);
lstrcpyW
(
piOutput
.
achName
,
szwVideoOut
);
...
...
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