[Ffmpeg-cvslog] r8851 - trunk/libavformat/audio.c

bcoudurier subversion
Fri Apr 27 18:10:05 CEST 2007


Author: bcoudurier
Date: Fri Apr 27 18:10:05 2007
New Revision: 8851

Log:
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

Modified:
   trunk/libavformat/audio.c

Modified: trunk/libavformat/audio.c
==============================================================================
--- trunk/libavformat/audio.c	(original)
+++ trunk/libavformat/audio.c	Fri Apr 27 18:10:05 2007
@@ -158,7 +158,7 @@ static int audio_write_header(AVFormatCo
     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 {




More information about the ffmpeg-cvslog mailing list