[vlc-devel] commit: codec/schroedinger: remove ts hack, request packetizer ( David Flynn )
git version control
git at videolan.org
Fri Apr 3 11:21:09 CEST 2009
vlc | branch: master | David Flynn <davidf at rd.bbc.co.uk> | Fri Mar 27 20:37:52 2009 +0000| [1a2ecda0b50194748652c2c3407975a0b2e4907a] | committer: Jean-Baptiste Kempf
codec/schroedinger: remove ts hack, request packetizer
Signed-off-by: David Flynn <davidf at rd.bbc.co.uk>
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1a2ecda0b50194748652c2c3407975a0b2e4907a
---
modules/codec/schroedinger.c | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/modules/codec/schroedinger.c b/modules/codec/schroedinger.c
index 1f39df1..70a8f05 100644
--- a/modules/codec/schroedinger.c
+++ b/modules/codec/schroedinger.c
@@ -90,7 +90,6 @@ struct decoder_sys_t
SchroDecoder *p_schro;
SchroVideoFormat *p_format;
struct picture_pts_t pts_tlb[PTS_TLB_SIZE];
- int i_ts_resync_hack;
};
//#define TRACE
@@ -141,10 +140,12 @@ static int OpenDecoder( vlc_object_t *p_this )
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');
@@ -384,9 +385,6 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
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;
@@ -404,10 +402,6 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
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;
More information about the vlc-devel
mailing list