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
14d8d6e1
Commit
14d8d6e1
authored
May 02, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* transcode: fix about raw audio.
parent
58fc4e93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+5
-3
No files found.
modules/stream_out/transcode.c
View file @
14d8d6e1
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* transcode.c
* transcode.c
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* Copyright (C) 2001, 2002 VideoLAN
* $Id: transcode.c,v 1.
8 2003/05/02 16:25:12
fenrir Exp $
* $Id: transcode.c,v 1.
9 2003/05/02 19:37:08
fenrir Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*
...
@@ -679,6 +679,7 @@ static int transcode_audio_ffmpeg_process( sout_stream_t *p_stream, sout_stream_
...
@@ -679,6 +679,7 @@ static int transcode_audio_ffmpeg_process( sout_stream_t *p_stream, sout_stream_
int
i_samples
=
__MIN
(
(
id
->
i_buffer
-
id
->
i_buffer_pos
)
/
2
,
id
->
i_buffer_in_pos
/
2
);
int
i_samples
=
__MIN
(
(
id
->
i_buffer
-
id
->
i_buffer_pos
)
/
2
,
id
->
i_buffer_in_pos
/
2
);
#ifdef WORDS_BIGENDIAN
#ifdef WORDS_BIGENDIAN
uint8_t
*
sin
=
(
uint8_t
*
)
id
->
p_buffer_in
;
uint8_t
*
sin
=
(
uint8_t
*
)
id
->
p_buffer_in
;
i_used
=
i_samples
*
2
;
while
(
i_samples
>
0
)
while
(
i_samples
>
0
)
{
{
uint8_t
tmp
[
2
];
uint8_t
tmp
[
2
];
...
@@ -692,8 +693,8 @@ static int transcode_audio_ffmpeg_process( sout_stream_t *p_stream, sout_stream_
...
@@ -692,8 +693,8 @@ static int transcode_audio_ffmpeg_process( sout_stream_t *p_stream, sout_stream_
#else
#else
memcpy
(
sout
,
id
->
p_buffer_in
,
i_samples
*
2
);
memcpy
(
sout
,
id
->
p_buffer_in
,
i_samples
*
2
);
sout
+=
i_samples
;
sout
+=
i_samples
;
#endif
i_used
=
i_samples
*
2
;
i_used
=
i_samples
*
2
;
#endif
}
}
else
if
(
id
->
f_src
.
i_fourcc
==
VLC_FOURCC
(
's'
,
'1'
,
'6'
,
'b'
)
)
else
if
(
id
->
f_src
.
i_fourcc
==
VLC_FOURCC
(
's'
,
'1'
,
'6'
,
'b'
)
)
{
{
...
@@ -701,8 +702,10 @@ static int transcode_audio_ffmpeg_process( sout_stream_t *p_stream, sout_stream_
...
@@ -701,8 +702,10 @@ static int transcode_audio_ffmpeg_process( sout_stream_t *p_stream, sout_stream_
#ifdef WORDS_BIGENDIAN
#ifdef WORDS_BIGENDIAN
memcpy
(
sout
,
id
->
p_buffer_in
,
i_samples
*
2
);
memcpy
(
sout
,
id
->
p_buffer_in
,
i_samples
*
2
);
sout
+=
i_samples
;
sout
+=
i_samples
;
i_used
=
i_samples
*
2
;
#else
#else
uint8_t
*
sin
=
(
uint8_t
*
)
id
->
p_buffer_in
;
uint8_t
*
sin
=
(
uint8_t
*
)
id
->
p_buffer_in
;
i_used
=
i_samples
*
2
;
while
(
i_samples
>
0
)
while
(
i_samples
>
0
)
{
{
uint8_t
tmp
[
2
];
uint8_t
tmp
[
2
];
...
@@ -713,7 +716,6 @@ static int transcode_audio_ffmpeg_process( sout_stream_t *p_stream, sout_stream_
...
@@ -713,7 +716,6 @@ static int transcode_audio_ffmpeg_process( sout_stream_t *p_stream, sout_stream_
i_samples
--
;
i_samples
--
;
}
}
#endif
#endif
i_used
=
i_samples
*
2
;
}
}
id
->
i_buffer_pos
=
(
uint8_t
*
)
sout
-
id
->
p_buffer
;
id
->
i_buffer_pos
=
(
uint8_t
*
)
sout
-
id
->
p_buffer
;
...
...
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