lavd/pulse_audio_enc: fix flush return code

Successful flushing is reported by returning 1 instead of 0.

Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
This commit is contained in:
Lukasz Marek 2013-11-01 15:10:56 +01:00
parent 3220a894f7
commit 398844f093
1 changed files with 1 additions and 1 deletions

View File

@ -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)