Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
360fbdaf
Commit
360fbdaf
authored
Dec 20, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used VLC_TS_0 in nsv demuxer.
parent
b0b7d04b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/demux/nsv.c
modules/demux/nsv.c
+6
-6
No files found.
modules/demux/nsv.c
View file @
360fbdaf
...
...
@@ -118,7 +118,7 @@ static int Open( vlc_object_t *p_this )
es_format_Init
(
&
p_sys
->
fmt_sub
,
SPU_ES
,
0
);
p_sys
->
p_sub
=
NULL
;
p_sys
->
i_pcr
=
1
;
p_sys
->
i_pcr
=
0
;
p_sys
->
i_time
=
0
;
p_sys
->
i_pcr_inc
=
0
;
...
...
@@ -203,7 +203,7 @@ static int Demux( demux_t *p_demux )
}
/* Set PCR */
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
(
int64_t
)
p_sys
->
i_pcr
);
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
VLC_TS_0
+
p_sys
->
i_pcr
);
/* Read video */
i_size
=
(
header
[
0
]
>>
4
)
|
(
header
[
1
]
<<
4
)
|
(
header
[
2
]
<<
12
);
...
...
@@ -251,8 +251,8 @@ static int Demux( demux_t *p_demux )
}
/* Skip the first part (it is the language name) */
p_frame
->
i_pts
=
p_sys
->
i_pcr
;
p_frame
->
i_dts
=
p_sys
->
i_pcr
+
4000000
;
/* 4s */
p_frame
->
i_pts
=
VLC_TS_0
+
p_sys
->
i_pcr
;
p_frame
->
i_dts
=
VLC_TS_0
+
p_sys
->
i_pcr
+
4000000
;
/* 4s */
es_out_Send
(
p_demux
->
out
,
p_sys
->
p_sub
,
p_frame
);
}
...
...
@@ -272,7 +272,7 @@ static int Demux( demux_t *p_demux )
/* msg_Dbg( p_demux, "frame video size=%d", i_size ); */
if
(
i_size
>
0
&&
(
p_frame
=
stream_Block
(
p_demux
->
s
,
i_size
)
)
)
{
p_frame
->
i_dts
=
p_sys
->
i_pcr
;
p_frame
->
i_dts
=
VLC_TS_0
+
p_sys
->
i_pcr
;
es_out_Send
(
p_demux
->
out
,
p_sys
->
p_video
,
p_frame
);
}
}
...
...
@@ -300,7 +300,7 @@ static int Demux( demux_t *p_demux )
if
(
(
p_frame
=
stream_Block
(
p_demux
->
s
,
i_size
)
)
)
{
p_frame
->
i_dts
=
p_frame
->
i_pts
=
p_sys
->
i_pcr
;
p_frame
->
i_pts
=
VLC_TS_0
+
p_sys
->
i_pcr
;
es_out_Send
(
p_demux
->
out
,
p_sys
->
p_audio
,
p_frame
);
}
}
...
...
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