[vlc-commits] aout: fix support for 8-bits PCM
Rémi Denis-Courmont
git at videolan.org
Thu Nov 15 22:25:49 CET 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Nov 15 23:25:32 2012 +0200| [6d8581994183133a1d38d16f0ddbb15d3a851c26] | committer: Rémi Denis-Courmont
aout: fix support for 8-bits PCM
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6d8581994183133a1d38d16f0ddbb15d3a851c26
---
src/audio_output/filters.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/audio_output/filters.c b/src/audio_output/filters.c
index edae769..b2edd74 100644
--- a/src/audio_output/filters.c
+++ b/src/audio_output/filters.c
@@ -167,7 +167,7 @@ static int aout_FiltersPipelineCreate(vlc_object_t *obj, filter_t **filters,
if (input.i_format != outfmt->i_format || !same_mix)
{
vlc_fourcc_t native = aout_NativeEndian (input.i_format);
- if (native != input.i_format)
+ if (native != 0 && native != input.i_format)
{
if (n == max)
goto overflow;
@@ -248,6 +248,8 @@ static int aout_FiltersPipelineCreate(vlc_object_t *obj, filter_t **filters,
/* Format */
vlc_fourcc_t native = aout_NativeEndian (outfmt->i_format);
+ if (native == 0)
+ native = outfmt->i_format;
if (input.i_format != native)
{
if (max == 0)
More information about the vlc-commits
mailing list