SchroDecoder *p_schro;
SchroVideoFormat *p_format;
struct picture_pts_t pts_tlb[PTS_TLB_SIZE];
- int i_ts_resync_hack;
};
//#define TRACE
p_sys->p_format = NULL;
p_sys->i_lastpts = -1;
p_sys->i_frame_pts_delta = 0;
- p_sys->i_ts_resync_hack = 0;
ResetPTStlb(p_dec);
+ /* request packetizer */
+ p_dec->b_need_packetized = true;
+
/* Set output properties */
p_dec->fmt_out.i_cat = VIDEO_ES;
p_dec->fmt_out.i_codec = VLC_FOURCC('I','4','2','0');
if ( p_block ) do {
/* prepare block for submission */
- if (p_sys->i_ts_resync_hack && p_sys->i_ts_resync_hack--)
- return NULL;
-
if( !p_block->i_buffer ) {
msg_Err( p_dec, "block is of zero size" );
break;
p_sys->i_lastpts = -1;
- /* The ts layer manages to corrupt the next packet we are to receive
- * Since schro has no sync support, we need to drop it */
- p_sys->i_ts_resync_hack = 1;
-
block_Release( p_block );
*pp_block = NULL;
return NULL;