Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
39d0b322
Commit
39d0b322
authored
Feb 21, 2014
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat mux: use a variable
parent
7f16c150
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
modules/demux/avformat/mux.c
modules/demux/avformat/mux.c
+4
-3
No files found.
modules/demux/avformat/mux.c
View file @
39d0b322
...
...
@@ -441,6 +441,7 @@ static int Control( sout_mux_t *p_mux, int i_query, va_list args )
static
int
IOWrite
(
void
*
opaque
,
uint8_t
*
buf
,
int
buf_size
)
{
sout_mux_t
*
p_mux
=
opaque
;
sout_mux_sys_t
*
p_sys
=
p_mux
->
p_sys
;
int
i_ret
;
#ifdef AVFORMAT_DEBUG
...
...
@@ -450,13 +451,13 @@ static int IOWrite( void *opaque, uint8_t *buf, int buf_size )
block_t
*
p_buf
=
block_Alloc
(
buf_size
);
if
(
buf_size
>
0
)
memcpy
(
p_buf
->
p_buffer
,
buf
,
buf_size
);
if
(
p_
mux
->
p_
sys
->
b_write_header
)
if
(
p_sys
->
b_write_header
)
p_buf
->
i_flags
|=
BLOCK_FLAG_HEADER
;
if
(
p_
mux
->
p_
sys
->
b_write_keyframe
)
if
(
p_sys
->
b_write_keyframe
)
{
p_buf
->
i_flags
|=
BLOCK_FLAG_TYPE_I
;
p_
mux
->
p_
sys
->
b_write_keyframe
=
false
;
p_sys
->
b_write_keyframe
=
false
;
}
i_ret
=
sout_AccessOutWrite
(
p_mux
->
p_access
,
p_buf
);
...
...
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