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
bd680293
Commit
bd680293
authored
Feb 01, 2006
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a memleak
parent
baed4c1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
modules/packetizer/mpegvideo.c
modules/packetizer/mpegvideo.c
+7
-5
No files found.
modules/packetizer/mpegvideo.c
View file @
bd680293
...
...
@@ -121,7 +121,7 @@ struct decoder_sys_t
/* Number of pictures since last sequence header */
int
i_seq_old
;
/* Sync behaviour */
vlc_bool_t
b_sync_on_intra_frame
;
vlc_bool_t
b_discontinuity
;
...
...
@@ -190,7 +190,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
b_sync_on_intra_frame
=
var_CreateGetBool
(
p_dec
,
"packetizer-mpegvideo-sync-iframe"
);
if
(
p_sys
->
b_sync_on_intra_frame
)
msg_Dbg
(
p_dec
,
"syncing happens on intraframe now."
);
return
VLC_SUCCESS
;
}
...
...
@@ -216,7 +216,7 @@ static void Close( vlc_object_t *p_this )
{
block_ChainRelease
(
p_sys
->
p_frame
);
}
var_Destroy
(
p_dec
,
"packetizer-mpegvideo-sync-iframe"
);
free
(
p_sys
);
...
...
@@ -240,7 +240,7 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
p_sys
->
i_state
=
STATE_NOSYNC
;
p_sys
->
b_discontinuity
=
VLC_TRUE
;
if
(
p_sys
->
p_frame
)
block_ChainRelease
(
p_sys
->
p_frame
);
block_ChainRelease
(
p_sys
->
p_frame
);
p_sys
->
p_frame
=
NULL
;
p_sys
->
pp_last
=
&
p_sys
->
p_frame
;
p_sys
->
b_frame_slice
=
VLC_FALSE
;
...
...
@@ -328,11 +328,13 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
}
else
{
msg_Dbg
(
p_dec
,
"waiting on Intra frame"
);
p_sys
->
i_state
=
STATE_NOSYNC
;
block_Release
(
p_pic
);
break
;
}
}
/* We've just started the stream, wait for the first PTS.
* We discard here so we can still get the sequence header. */
if
(
p_sys
->
i_dts
<=
0
&&
p_sys
->
i_pts
<=
0
&&
...
...
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