Просмотр исходного кода

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.
Reimar Döffinger 14 лет назад
Родитель
Сommit
1862778732
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      libavdevice/sndio_common.c

+ 1 - 1
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)) {