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
890ec5e2
Commit
890ec5e2
authored
Dec 30, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: kill config_Get
parent
8417358d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
modules/codec/avcodec/avcodec.c
modules/codec/avcodec/avcodec.c
+1
-1
modules/codec/avcodec/encoder.c
modules/codec/avcodec/encoder.c
+1
-1
modules/codec/avcodec/video.c
modules/codec/avcodec/video.c
+3
-3
No files found.
modules/codec/avcodec/avcodec.c
View file @
890ec5e2
...
...
@@ -254,7 +254,7 @@ static int OpenDecoder( vlc_object_t *p_this )
p_context
=
avcodec_alloc_context
();
if
(
!
p_context
)
return
VLC_ENOMEM
;
p_context
->
debug
=
config_GetInt
(
p_dec
,
"ffmpeg-debug"
);
p_context
->
debug
=
var_InheritInteger
(
p_dec
,
"ffmpeg-debug"
);
p_context
->
opaque
=
(
void
*
)
p_this
;
/* Set CPU capabilities */
...
...
modules/codec/avcodec/encoder.c
View file @
890ec5e2
...
...
@@ -278,7 +278,7 @@ int OpenEncoder( vlc_object_t *p_this )
p_sys
->
p_context
=
p_context
=
avcodec_alloc_context
();
p_sys
->
p_context
->
codec_id
=
p_sys
->
p_codec
->
id
;
p_context
->
debug
=
config_GetInt
(
p_enc
,
"ffmpeg-debug"
);
p_context
->
debug
=
var_InheritInteger
(
p_enc
,
"ffmpeg-debug"
);
p_context
->
opaque
=
(
void
*
)
p_this
;
/* Set CPU capabilities */
...
...
modules/codec/avcodec/video.c
View file @
890ec5e2
...
...
@@ -216,13 +216,13 @@ int InitVideoDec( decoder_t *p_dec, AVCodecContext *p_context,
/* ***** Get configuration of ffmpeg plugin ***** */
p_sys
->
p_context
->
workaround_bugs
=
config_GetInt
(
p_dec
,
"ffmpeg-workaround-bugs"
);
var_InheritInteger
(
p_dec
,
"ffmpeg-workaround-bugs"
);
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT( 52, 0, 0 )
p_sys
->
p_context
->
error_resilience
=
config_GetInt
(
p_dec
,
"ffmpeg-error-resilience"
);
var_InheritInteger
(
p_dec
,
"ffmpeg-error-resilience"
);
#else
p_sys
->
p_context
->
error_recognition
=
config_GetInt
(
p_dec
,
"ffmpeg-error-resilience"
);
var_InheritInteger
(
p_dec
,
"ffmpeg-error-resilience"
);
#endif
if
(
var_CreateGetBool
(
p_dec
,
"grayscale"
)
)
...
...
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