Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
1d7840aa
Commit
1d7840aa
authored
23 years ago
by
Fabrice Bellard
Browse files
Options
Downloads
Patches
Plain Diff
fixed stereo grab
Originally committed as revision 135 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e30a2846
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ffmpeg.c
+5
-5
5 additions, 5 deletions
ffmpeg.c
with
5 additions
and
5 deletions
ffmpeg.c
+
5
−
5
View file @
1d7840aa
...
@@ -192,9 +192,9 @@ static int read_key(void)
...
@@ -192,9 +192,9 @@ static int read_key(void)
/* main loop for grabbing */
/* main loop for grabbing */
int
av_grab
(
AVFormatContext
*
s
)
int
av_grab
(
AVFormatContext
*
s
)
{
{
UINT8
audio_buf
[
AUDIO_FIFO_SIZE
/
2
];
UINT8
audio_buf
[
AUDIO_FIFO_SIZE
];
UINT8
audio_buf1
[
AUDIO_FIFO_SIZE
/
2
];
UINT8
audio_buf1
[
AUDIO_FIFO_SIZE
];
UINT8
audio_out
[
AUDIO_FIFO_SIZE
/
2
];
UINT8
audio_out
[
AUDIO_FIFO_SIZE
];
UINT8
video_buffer
[
1024
*
1024
];
UINT8
video_buffer
[
1024
*
1024
];
char
buf
[
256
];
char
buf
[
256
];
short
*
samples
;
short
*
samples
;
...
@@ -364,8 +364,8 @@ int av_grab(AVFormatContext *s)
...
@@ -364,8 +364,8 @@ int av_grab(AVFormatContext *s)
ost
->
resample
=
audio_resample_init
(
enc
->
channels
,
channels
,
ost
->
resample
=
audio_resample_init
(
enc
->
channels
,
channels
,
enc
->
sample_rate
,
sample_rate
);
enc
->
sample_rate
,
sample_rate
);
}
}
if
(
fifo_init
(
&
ost
->
fifo
,
(
2
*
audio_fifo_size
*
enc
->
sample_rate
)
/
if
(
fifo_init
(
&
ost
->
fifo
,
(
2
*
audio_fifo_size
*
enc
->
sample_rate
*
sample_rate
))
enc
->
channels
)
/
sample_rate
))
goto
fail
;
goto
fail
;
break
;
break
;
case
CODEC_TYPE_VIDEO
:
case
CODEC_TYPE_VIDEO
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment