Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
3a6f1b59
Commit
3a6f1b59
authored
May 19, 2008
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics.
parent
b26f5a25
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
modules/codec/ffmpeg/encoder.c
modules/codec/ffmpeg/encoder.c
+17
-15
No files found.
modules/codec/ffmpeg/encoder.c
View file @
3a6f1b59
...
...
@@ -237,7 +237,7 @@ int OpenEncoder( vlc_object_t *p_this )
}
/* Initialization must be done before avcodec_find_encoder() */
InitLibavcodec
(
p_this
);
InitLibavcodec
(
p_this
);
p_codec
=
avcodec_find_encoder
(
i_codec_id
);
if
(
!
p_codec
)
...
...
@@ -529,8 +529,8 @@ int OpenEncoder( vlc_object_t *p_this )
if
(
p_sys
->
i_vtolerance
>
0
)
p_context
->
bit_rate_tolerance
=
p_sys
->
i_vtolerance
;
/* usually if someone sets bitrate, he likes more to get that bitrate
over quality
* should help 'normal' user to get asked bitrate
/* usually if someone sets bitrate, he likes more to get that bitrate
*
over quality
should help 'normal' user to get asked bitrate
*/
if
(
p_enc
->
fmt_out
.
i_bitrate
>
0
&&
p_sys
->
i_qmax
==
0
&&
p_sys
->
i_qmin
==
0
)
{
...
...
@@ -655,7 +655,8 @@ int OpenEncoder( vlc_object_t *p_this )
{
vlc_mutex_unlock
(
lock
);
msg_Err
(
p_enc
,
"cannot open encoder"
);
intf_UserFatal
(
p_enc
,
false
,
_
(
"Streaming / Transcoding failed"
),
intf_UserFatal
(
p_enc
,
false
,
_
(
"Streaming / Transcoding failed"
),
_
(
"VLC could not open the encoder."
)
);
free
(
p_sys
);
return
VLC_EGENERIC
;
...
...
@@ -1021,7 +1022,8 @@ static block_t *EncodeAudio( encoder_t *p_enc, aout_buffer_t *p_aout_buf )
p_samples
=
(
int16_t
*
)
p_buffer
;
}
i_out
=
avcodec_encode_audio
(
p_sys
->
p_context
,
(
uint8_t
*
)
p_sys
->
p_buffer_out
,
i_out
=
avcodec_encode_audio
(
p_sys
->
p_context
,
(
uint8_t
*
)
p_sys
->
p_buffer_out
,
2
*
AVCODEC_MAX_AUDIO_FRAME_SIZE
,
p_samples
);
...
...
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