diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-04-27 16:10:05 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-04-27 16:10:05 +0000 |
commit | 7bb7ad0eb5b6c169b24aad15c1f7770c9b91d3af (patch) | |
tree | 8b68fe2a9f79f0532c31c7679d8724f2a5a507be /libavformat | |
parent | 9f1473b304ae11ee09b7ae22016c951fdce31dd2 (diff) | |
download | ffmpeg-7bb7ad0eb5b6c169b24aad15c1f7770c9b91d3af.tar.gz |
fix oss audio playback, broken since r7983, pass AVFormatContext filename to audio_open since audio_device when NULL is no more set to default value
Originally committed as revision 8851 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/audio.c b/libavformat/audio.c index a9e5bffd5f..b17dcea8e7 100644 --- a/libavformat/audio.c +++ b/libavformat/audio.c @@ -158,7 +158,7 @@ static int audio_write_header(AVFormatContext *s1) st = s1->streams[0]; s->sample_rate = st->codec->sample_rate; s->channels = st->codec->channels; - ret = audio_open(s, 1, NULL); + ret = audio_open(s, 1, s1->filename); if (ret < 0) { return AVERROR_IO; } else { |