mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-23 15:53:08 +00:00
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>
This commit is contained in:
parent
52fd16a264
commit
2eddfb2b13
@ -64,7 +64,7 @@ av_cold int ff_sndio_open(AVFormatContext *s1, int is_output,
|
|||||||
goto fail;
|
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.pchan != s->channels)) ||
|
||||||
(!is_output && (par.rchan != s->channels)) ||
|
(!is_output && (par.rchan != s->channels)) ||
|
||||||
(par.rate != s->sample_rate)) {
|
(par.rate != s->sample_rate)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user