lavd:pulse_audio_enc: fix array compared against 0

fixes CID 1113222

Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
This commit is contained in:
Lukasz Marek 2013-10-27 21:18:27 +01:00
parent e5b3b75669
commit 4fb3aa491b

View File

@ -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";