mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-03 10:43:09 +00:00
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
This commit is contained in:
parent
9f1473b304
commit
7bb7ad0eb5
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user