[FFmpeg-cvslog] lavd:pulse_audio_enc: fix array compared against 0

Lukasz Marek git at videolan.org
Sun Oct 27 22:10:33 CET 2013


ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki at gmail.com> | Sun Oct 27 21:18:27 2013 +0100| [4fb3aa491b477f819967796f05c4e904d96da76f] | committer: Lukasz Marek

lavd:pulse_audio_enc: fix array compared against 0

fixes CID 1113222

Signed-off-by: Lukasz Marek <lukasz.m.luki at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4fb3aa491b477f819967796f05c4e904d96da76f
---

 libavdevice/pulse_audio_enc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/pulse_audio_enc.c b/libavdevice/pulse_audio_enc.c
index af11494..05df05c 100644
--- a/libavdevice/pulse_audio_enc.c
+++ b/libavdevice/pulse_audio_enc.c
@@ -62,7 +62,7 @@ static av_cold int pulse_write_header(AVFormatContext *h)
     }
 
     if (!stream_name) {
-        if (h->filename)
+        if (h->filename[0])
             stream_name = h->filename;
         else
             stream_name = "Playback";



More information about the ffmpeg-cvslog mailing list