aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-03-29 20:20:29 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-03-29 20:21:47 +0200
commit1862778732f35a198ff52bf6c2f41d20f4ea0f6b (patch)
tree3099de8e97315641fccc5d343959433337513959
parente76c0c6a00b4530f2939602204520c7eabf5efdf (diff)
downloadffmpeg-1862778732f35a198ff52bf6c2f41d20f4ea0f6b.tar.gz
sndio: allow any endianness when recording
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. It is possible that 8-bit recording would not have worked at all on some systems without that change.
-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 70daa25452..7e3b9a3eb9 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)) {