aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/sndio_common.c
diff options
context:
space:
mode:
authorBrad <brad@comstyle.com>2011-03-29 19:37:57 -0400
committerRonald S. Bultje <rsbultje@gmail.com>2011-03-29 21:19:39 -0700
commit2eddfb2b13921af10d096e03f63ca98226a2a292 (patch)
tree430839b1af0e951bdba964d9a8ca43c9a49dffbe /libavdevice/sndio_common.c
parent52fd16a264d1eb14b1a84b7b38041da1756fb216 (diff)
downloadffmpeg-2eddfb2b13921af10d096e03f63ca98226a2a292.tar.gz
sndio bug fix
Since the code already supports both little- and big-endian audio for recording, do not fail just because the endianness is not what we expect. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavdevice/sndio_common.c')
-rw-r--r--libavdevice/sndio_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/sndio_common.c b/libavdevice/sndio_common.c
index 60b7970051..56c37c76b7 100644
--- a/libavdevice/sndio_common.c
+++ b/libavdevice/sndio_common.c
@@ -64,7 +64,7 @@ av_cold int ff_sndio_open(AVFormatContext *s1, int is_output,
goto fail;
}
- if (par.bits != 16 || par.sig != 1 || par.le != SIO_LE_NATIVE ||
+ if (par.bits != 16 || par.sig != 1 ||
(is_output && (par.pchan != s->channels)) ||
(!is_output && (par.rchan != s->channels)) ||
(par.rate != s->sample_rate)) {