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
4b3cb044
Commit
4b3cb044
authored
May 03, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: add missing post/wait when opening the codec
AVCodecContext callbacks can also be invoked then.
parent
84b5dcfa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
modules/codec/avcodec/video.c
modules/codec/avcodec/video.c
+5
-2
No files found.
modules/codec/avcodec/video.c
View file @
4b3cb044
...
...
@@ -243,6 +243,7 @@ static void lavc_CopyPicture(decoder_t *dec, picture_t *pic, AVFrame *frame)
static
int
OpenVideoCodec
(
decoder_t
*
p_dec
)
{
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
int
ret
;
if
(
p_sys
->
p_context
->
extradata_size
<=
0
)
{
...
...
@@ -267,7 +268,9 @@ static int OpenVideoCodec( decoder_t *p_dec )
p_sys
->
p_context
->
coded_height
=
p_dec
->
fmt_in
.
video
.
i_height
;
p_sys
->
p_context
->
bits_per_coded_sample
=
p_dec
->
fmt_in
.
video
.
i_bits_per_pixel
;
int
ret
=
ffmpeg_OpenCodec
(
p_dec
);
post_mt
(
p_sys
);
ret
=
ffmpeg_OpenCodec
(
p_dec
);
wait_mt
(
p_sys
);
if
(
ret
<
0
)
return
ret
;
...
...
@@ -292,7 +295,7 @@ static int OpenVideoCodec( decoder_t *p_dec )
break
;
}
#endif
return
VLC_SUCCESS
;
return
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