Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
4b08ccc5
Commit
4b08ccc5
authored
Aug 06, 2013
by
François Cartegnie
🤞
Browse files
codec: x264: avoid segfault with x264_encoder_delayed_frames
parent
21914e2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/codec/x264.c
View file @
4b08ccc5
...
...
@@ -1532,10 +1532,11 @@ static void Close( vlc_object_t *p_this )
free
(
p_sys
->
psz_stat_name
);
free
(
p_sys
->
p_sei
);
msg_Dbg
(
p_enc
,
"framecount still in libx264 buffer: %d"
,
x264_encoder_delayed_frames
(
p_sys
->
h
)
);
if
(
p_sys
->
h
)
{
msg_Dbg
(
p_enc
,
"framecount still in libx264 buffer: %d"
,
x264_encoder_delayed_frames
(
p_sys
->
h
)
);
x264_encoder_close
(
p_sys
->
h
);
}
#ifdef PTW32_STATIC_LIB
vlc_mutex_lock
(
&
pthread_win32_mutex
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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