Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
c01d738a
Commit
c01d738a
authored
Feb 02, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* nsv: full fractional frame rate support.
Patch from Vitalijus dot Slavinskas at stud dot ktu dot lt
parent
90a72314
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
+18
-11
modules/demux/nsv.c
modules/demux/nsv.c
+18
-11
No files found.
modules/demux/nsv.c
View file @
c01d738a
...
...
@@ -2,7 +2,7 @@
* nsv.c: NullSoft Video demuxer.
*****************************************************************************
* Copyright (C) 2004 VideoLAN
* $Id: nsv.c,v 1.
5 2004/01/25 20:05:28 hartman
Exp $
* $Id: nsv.c,v 1.
6 2004/02/02 10:34:22 fenrir
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -444,25 +444,32 @@ static int ReadNSVs( demux_t *p_demux )
if
(
header
[
16
]
&
0x80
)
{
switch
(
header
[
16
]
&
0x7f
)
/* Fractional frame rate */
switch
(
header
[
16
]
&
0x03
)
{
case
1
:
/* 29.97
fps */
p_sys
->
i_pcr_inc
=
333
67
;
case
0
:
/* 30
fps */
p_sys
->
i_pcr_inc
=
333
33
;
/* 300000/9 */
break
;
case
3
:
/* 23.976
fps */
p_sys
->
i_pcr_inc
=
41708
;
case
1
:
/* 29.97
fps */
p_sys
->
i_pcr_inc
=
33367
;
/* 300300/9 */
break
;
case
5
:
/* 14.98
fps */
p_sys
->
i_pcr_inc
=
66755
;
case
2
:
/* 25
fps */
p_sys
->
i_pcr_inc
=
40000
;
/* 360000/9 */
break
;
default:
msg_Dbg
(
p_demux
,
"unknown fps (0x%x)"
,
header
[
16
]
);
p_sys
->
i_pcr_inc
=
40000
;
case
3
:
/* 23.98 fps */
p_sys
->
i_pcr_inc
=
41700
;
/* 375300/9 */
break
;
}
if
(
header
[
16
]
<
0xc0
)
p_sys
->
i_pcr_inc
=
p_sys
->
i_pcr_inc
*
(((
header
[
16
]
^
0x80
)
>>
2
)
+
1
);
else
p_sys
->
i_pcr_inc
=
p_sys
->
i_pcr_inc
/
(((
header
[
16
]
^
0xc0
)
>>
2
)
+
1
);
}
}
else
if
(
header
[
16
]
!=
0
)
{
/* Integer frame rate */
p_sys
->
i_pcr_inc
=
1000000
/
header
[
16
];
}
else
...
...
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