[vlc-devel] commit: Fixed es_format_t::i_codec/ i_original_fourcc values after the decoder. (Laurent Aimar )
git version control
git at videolan.org
Wed May 13 21:20:19 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue May 12 22:52:18 2009 +0200| [99d6464fd43bcc6229741e3d11f7b96a3d063dce] | committer: Laurent Aimar
Fixed es_format_t::i_codec/i_original_fourcc values after the decoder.
es_format_t::i_codec will be the codec from vlc_fourcc.h
es_format_t::i_original_fourcc will contains the original fourcc
value.
This allows to simplify the decoder/packetizer and every sout modules.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=99d6464fd43bcc6229741e3d11f7b96a3d063dce
---
src/input/es_out.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index c20972a..060461f 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -1387,6 +1387,10 @@ static es_out_id_t *EsOutAdd( es_out_t *out, const es_format_t *fmt )
es_format_Copy( &es->fmt, fmt );
if( es->fmt.i_id < 0 )
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 = es_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;
es->b_scrambled = false;
More information about the vlc-devel
mailing list