X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fcodec%2Fcsri.c;h=d1fcbed78b5df3cf1371d710eb58e7db99b68914;hb=90a6e08532db5733843224cf0d327f36d0400f73;hp=26f4c18077df5251c7892eb7b9bf974a042aa9eb;hpb=7c14959cf119c24660ced3c4cb5af51f15f8c3cb;p=vlc diff --git a/modules/codec/csri.c b/modules/codec/csri.c index 26f4c18077..d1fcbed78b 100644 --- a/modules/codec/csri.c +++ b/modules/codec/csri.c @@ -24,25 +24,20 @@ /***************************************************************************** * Preamble *****************************************************************************/ -#include + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include +#include -#include "config.h" #include #include #include #include #include -#include -#include -#include -#include - -#include - -#ifdef HAVE_ERRNO_H -# include -#endif +#include #include #include @@ -170,6 +165,8 @@ static subpicture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block ) return NULL; p_block = *pp_block; + if( p_block->i_rate != 0 ) + p_block->i_length = p_block->i_length * p_block->i_rate / INPUT_RATE_DEFAULT; *pp_block = NULL; if( p_block->i_buffer == 0 || p_block->p_buffer[0] == '\0' )