[vlc-devel] commit: Fixed "stats" decoder output format. (Laurent Aimar )

git version control git at videolan.org
Fri May 1 13:56:23 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri May  1 02:09:12 2009 +0200| [222b5fac835c40b31467d440171234f1b7225592] | committer: Laurent Aimar 

Fixed "stats" decoder output format.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=222b5fac835c40b31467d440171234f1b7225592
---

 modules/misc/stats/decoder.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/modules/misc/stats/decoder.c b/modules/misc/stats/decoder.c
index dbe13d8..5d9fa0a 100644
--- a/modules/misc/stats/decoder.c
+++ b/modules/misc/stats/decoder.c
@@ -53,6 +53,12 @@ int OpenDecoder ( vlc_object_t *p_this )
     p_dec->pf_decode_audio = NULL;
     p_dec->pf_decode_sub = NULL;
 
+    /* */
+    es_format_Init( &p_dec->fmt_out, VIDEO_ES, VLC_FOURCC('I','4','2','0') );
+    p_dec->fmt_out.video.i_width = 100;
+    p_dec->fmt_out.video.i_height = 100;
+    p_dec->fmt_out.video.i_aspect = VOUT_ASPECT_FACTOR;
+
     return VLC_SUCCESS;
 }
 
@@ -67,11 +73,6 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
     if( !pp_block || !*pp_block ) return NULL;
     p_block = *pp_block;
 
-    p_dec->fmt_out.video.i_width = 100;
-    p_dec->fmt_out.video.i_height = 100;
-    p_dec->fmt_out.video.i_aspect = VOUT_ASPECT_FACTOR;
-    p_dec->fmt_out.i_codec = VLC_FOURCC('I','4','2','0');
-
     p_pic = decoder_NewPicture( p_dec );
 
     if( p_block->i_buffer == kBufferSize )




More information about the vlc-devel mailing list