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
1e2f42cb
Commit
1e2f42cb
authored
Nov 07, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified demux_vaControlHelper to take bitrate in an int64_t
parent
fdf11136
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
include/vlc_demux.h
include/vlc_demux.h
+1
-1
modules/demux/rawvid.c
modules/demux/rawvid.c
+4
-4
src/input/demux.c
src/input/demux.c
+1
-1
No files found.
include/vlc_demux.h
View file @
1e2f42cb
...
...
@@ -151,7 +151,7 @@ enum demux_query_e
DEMUX_CAN_SEEK
,
/* arg1= bool* can fail (assume false)*/
};
VLC_EXPORT
(
int
,
demux_vaControlHelper
,
(
stream_t
*
,
int64_t
i_start
,
int64_t
i_end
,
int
i_bitrate
,
int
i_align
,
int
i_query
,
va_list
args
)
);
VLC_EXPORT
(
int
,
demux_vaControlHelper
,
(
stream_t
*
,
int64_t
i_start
,
int64_t
i_end
,
int
64_t
i_bitrate
,
int
i_align
,
int
i_query
,
va_list
args
)
);
/*************************************************************************
* Miscellaneous helpers for demuxers
...
...
modules/demux/rawvid.c
View file @
1e2f42cb
...
...
@@ -446,12 +446,12 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
/* NB, demux_vaControlHelper only takes int for i_bps currently;
* (2**31)-1 is insufficient to store 1080p50 4:4:4. */
int64_t
i_bps
=
8LL
*
p_sys
->
frame_size
*
p_sys
->
pcr
.
i_divider_num
/
p_sys
->
pcr
.
i_divider_den
;
/* (2**31)-1 is insufficient to store 1080p50 4:4:4. */
const
int64_t
i_bps
=
8LL
*
p_sys
->
frame_size
*
p_sys
->
pcr
.
i_divider_num
/
p_sys
->
pcr
.
i_divider_den
;
/* XXX: DEMUX_SET_TIME is precise here */
return
demux_vaControlHelper
(
p_demux
->
s
,
0
,
-
1
,
i_bps
,
p_sys
->
frame_size
,
i_query
,
args
);
}
src/input/demux.c
View file @
1e2f42cb
...
...
@@ -206,7 +206,7 @@ void demux_Delete( demux_t *p_demux )
*****************************************************************************/
int
demux_vaControlHelper
(
stream_t
*
s
,
int64_t
i_start
,
int64_t
i_end
,
int
i_bitrate
,
int
i_align
,
int
64_t
i_bitrate
,
int
i_align
,
int
i_query
,
va_list
args
)
{
int64_t
i_tell
;
...
...
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