[vlc-commits] araw: fix U8 and S16N dummy encoding
Rémi Denis-Courmont
git at videolan.org
Wed Dec 19 18:23:07 CET 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Dec 19 19:16:17 2012 +0200| [dcd87398d99a8b1971c7f2ecb1ae596ac088f642] | committer: Rémi Denis-Courmont
araw: fix U8 and S16N dummy encoding
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dcd87398d99a8b1971c7f2ecb1ae596ac088f642
---
modules/codec/araw.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/modules/codec/araw.c b/modules/codec/araw.c
index 956a975..6623aa4 100644
--- a/modules/codec/araw.c
+++ b/modules/codec/araw.c
@@ -438,8 +438,8 @@ static int EncoderOpen( vlc_object_t *p_this )
{
case VLC_CODEC_S8:
encode = S8Decode;
- p_enc->fmt_in.i_codec = VLC_CODEC_U8;
case VLC_CODEC_U8:
+ p_enc->fmt_in.i_codec = VLC_CODEC_U8;
p_enc->fmt_out.audio.i_bitspersample = 8;
break;
case VLC_CODEC_U16I:
@@ -454,12 +454,10 @@ static int EncoderOpen( vlc_object_t *p_this )
break;
case VLC_CODEC_S16I:
encode = S16IDecode;
+ case VLC_CODEC_S16N:
p_enc->fmt_in.i_codec = VLC_CODEC_S16N;
p_enc->fmt_out.audio.i_bitspersample = 16;
break;
- case VLC_CODEC_S16L:
- p_enc->fmt_out.audio.i_bitspersample = 16;
- break;
case VLC_CODEC_U24L:
case VLC_CODEC_U24B:
case VLC_CODEC_S24L:
More information about the vlc-commits
mailing list