aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/audio.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro@lisha.ufsc.br>2007-02-14 17:01:32 +0000
committerGuillaume Poirier <gpoirier@mplayerhq.hu>2007-02-14 17:01:32 +0000
commitcc58300e30e7aea6acfecd72a04a3886b285cfd8 (patch)
treee1060df29a65226dcdf1378538c920a1a544e2f8 /libavformat/audio.c
parent20121213630a03001148f3ffdadac895dae8d7c5 (diff)
downloadffmpeg-cc58300e30e7aea6acfecd72a04a3886b285cfd8.tar.gz
implement new grabbing interface, as described here:
ttp://thread.gmane.org/gmane.comp.video.ffmpeg.devel/42920 patch by Ramiro Polla % ramiro A lisha P ufsc P br % Original thread: Date: Jan 31, 2007 8:56 PM Subject: [Ffmpeg-devel] [PATCH] New grabbing interface Originally committed as revision 7983 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/audio.c')
-rw-r--r--libavformat/audio.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/libavformat/audio.c b/libavformat/audio.c
index 52f74db391..a9e5bffd5f 100644
--- a/libavformat/audio.c
+++ b/libavformat/audio.c
@@ -53,14 +53,6 @@ static int audio_open(AudioData *s, int is_output, const char *audio_device)
int tmp, err;
char *flip = getenv("AUDIO_FLIP_LEFT");
- /* open linux audio device */
- if (!audio_device)
-#ifdef __OpenBSD__
- audio_device = "/dev/sound";
-#else
- audio_device = "/dev/dsp";
-#endif
-
if (is_output)
audio_fd = open(audio_device, O_WRONLY);
else
@@ -229,7 +221,7 @@ static int audio_read_header(AVFormatContext *s1, AVFormatParameters *ap)
s->sample_rate = ap->sample_rate;
s->channels = ap->channels;
- ret = audio_open(s, 0, ap->device);
+ ret = audio_open(s, 0, s1->filename);
if (ret < 0) {
av_free(st);
return AVERROR_IO;