Commit 5e855e08 authored by bcoudurier's avatar bcoudurier

fix oss audio playback, broken since r7983, pass AVFormatContext filename to...

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

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8851 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ebdb418b
...@@ -158,7 +158,7 @@ static int audio_write_header(AVFormatContext *s1) ...@@ -158,7 +158,7 @@ static int audio_write_header(AVFormatContext *s1)
st = s1->streams[0]; st = s1->streams[0];
s->sample_rate = st->codec->sample_rate; s->sample_rate = st->codec->sample_rate;
s->channels = st->codec->channels; s->channels = st->codec->channels;
ret = audio_open(s, 1, NULL); ret = audio_open(s, 1, s1->filename);
if (ret < 0) { if (ret < 0) {
return AVERROR_IO; return AVERROR_IO;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment