[FFmpeg-devel] [PATCH 2/3] lavd/pulse_audio_enc: fix flush return code
Lukasz Marek
lukasz.m.luki at gmail.com
Fri Nov 1 15:40:49 CET 2013
Successful flushing is reported by returning 1 instead of 0.
Signed-off-by: Lukasz Marek <lukasz.m.luki at gmail.com>
---
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 e8eae33..b43eac4 100644
--- a/libavdevice/pulse_audio_enc.c
+++ b/libavdevice/pulse_audio_enc.c
@@ -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)
--
1.7.10.4
More information about the ffmpeg-devel
mailing list