[vlc-commits] commit: Improved audio codec description from fourcc. (Laurent Aimar )
git at videolan.org
git at videolan.org
Sun May 2 00:27:11 CEST 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun May 2 00:09:19 2010 +0200| [792054ae5cebe62b1a7269d0006eee821c066532] | committer: Laurent Aimar
Improved audio codec description from fourcc.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=792054ae5cebe62b1a7269d0006eee821c066532
---
src/input/es_out.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index 8d348b1..8d644a1 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -1453,7 +1453,12 @@ static es_out_id_t *EsOutAdd( es_out_t *out, const es_format_t *fmt )
es->fmt.i_id = out->p_sys->i_id;
if( !es->fmt.i_original_fourcc )
es->fmt.i_original_fourcc = es->fmt.i_codec;
- es->fmt.i_codec = vlc_fourcc_GetCodec( es->fmt.i_cat, es->fmt.i_codec );
+ if( es->fmt.i_cat == AUDIO_ES )
+ es->fmt.i_codec = vlc_fourcc_GetCodecAudio( es->fmt.i_codec,
+ es->fmt.audio.i_bitspersample );
+ else
+ es->fmt.i_codec = vlc_fourcc_GetCodec( es->fmt.i_cat,
+ es->fmt.i_codec );
es->i_id = es->fmt.i_id;
es->i_meta_id = out->p_sys->i_id;
More information about the vlc-commits
mailing list