Commit 222b5fac authored by Laurent Aimar's avatar Laurent Aimar

Fixed "stats" decoder output format.

parent a000d218
...@@ -53,6 +53,12 @@ int OpenDecoder ( vlc_object_t *p_this ) ...@@ -53,6 +53,12 @@ int OpenDecoder ( vlc_object_t *p_this )
p_dec->pf_decode_audio = NULL; p_dec->pf_decode_audio = NULL;
p_dec->pf_decode_sub = 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; return VLC_SUCCESS;
} }
...@@ -67,11 +73,6 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block ) ...@@ -67,11 +73,6 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if( !pp_block || !*pp_block ) return NULL; if( !pp_block || !*pp_block ) return NULL;
p_block = *pp_block; 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 ); p_pic = decoder_NewPicture( p_dec );
if( p_block->i_buffer == kBufferSize ) if( p_block->i_buffer == kBufferSize )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment