From 7bb7ad0eb5b6c169b24aad15c1f7770c9b91d3af Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Fri, 27 Apr 2007 16:10:05 +0000 Subject: [PATCH] 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 --- libavformat/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/audio.c b/libavformat/audio.c index a9e5bffd5..b17dcea8e 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 { -- 2.11.0