OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6b56b1
)
lavd/pulse_audio_enc: fix error check
author
Lukasz Marek
<lukasz.m.luki@gmail.com>
Fri, 18 Oct 2013 21:41:19 +0000
(23:41 +0200)
committer
Stefano Sabatini
<stefasab@gmail.com>
Fri, 18 Oct 2013 21:59:27 +0000
(23:59 +0200)
Error check should be done by checking negative value, not non-zero.
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
libavdevice/pulse_audio_enc.c
patch
|
blob
|
history
diff --git
a/libavdevice/pulse_audio_enc.c
b/libavdevice/pulse_audio_enc.c
index
25caa65
..
0a3aa1a
100644
(file)
--- a/
libavdevice/pulse_audio_enc.c
+++ b/
libavdevice/pulse_audio_enc.c
@@
-105,7
+105,7
@@
static int pulse_write_packet(AVFormatContext *h, AVPacket *pkt)
if (s->stream_index != pkt->stream_index)
return 0;
- if (
(error = pa_simple_write(s->pa, buf, size, &error))
) {
+ if (
pa_simple_write(s->pa, buf, size, &error) < 0
) {
av_log(s, AV_LOG_ERROR, "pa_simple_write failed: %s\n", pa_strerror(error));
return AVERROR(EIO);
}