#include <vlc_common.h>
#include <vlc_plugin.h>
-#include <vlc_codec.h> /* decoder_DeletePicture */
+#include <vlc_codec.h>
#include <schroedinger/schro.h>
p_sys->p_format = schro_decoder_get_video_format(p_sys->p_schro);
if( p_sys->p_format == NULL ) return;
- p_sys->i_frame_pts_delta = INT64_C(1000000)
+ p_sys->i_frame_pts_delta = CLOCK_FREQ
* p_sys->p_format->frame_rate_denominator
/ p_sys->p_format->frame_rate_numerator;
if( !p_free )
return;
- decoder_DeletePicture( p_free->p_dec, p_free->p_pic );
+ picture_Release( p_free->p_pic );
free(p_free);
(void)frame;
}
* is appended to the sequence header to allow guard
* against poor streaming servers */
/* XXX, should this be done using the packetizer ? */
+
+ if( len > UINT32_MAX - sizeof( eos ) )
+ return NULL;
+
p_enc->fmt_out.p_extra = malloc( len + sizeof( eos ) );
if( !p_enc->fmt_out.p_extra )
return NULL;