Commit 398844f0 authored by Lukasz Marek's avatar Lukasz Marek

lavd/pulse_audio_enc: fix flush return code

Successful flushing is reported by returning 1 instead of 0.
Signed-off-by: 's avatarLukasz Marek <lukasz.m.luki@gmail.com>
parent 3220a894
......@@ -102,7 +102,7 @@ static int pulse_write_packet(AVFormatContext *h, AVPacket *pkt)
av_log(s, AV_LOG_ERROR, "pa_simple_flush failed: %s\n", pa_strerror(error));
return AVERROR(EIO);
}
return 0;
return 1;
}
if (pkt->dts != AV_NOPTS_VALUE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment