[SCM] libav/experimental: 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

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:59:19 UTC 2013


The following commit has been merged in the experimental branch:
commit 7bb7ad0eb5b6c169b24aad15c1f7770c9b91d3af
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date:   Fri Apr 27 16:10:05 2007 +0000

    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

diff --git a/libavformat/audio.c b/libavformat/audio.c
index a9e5bff..b17dcea 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 {

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list