diff options
Diffstat (limited to 'src/libmpeg2')
-rw-r--r-- | src/libmpeg2/decode.c | 3 | ||||
-rw-r--r-- | src/libmpeg2/xine_decoder.c | 6 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/libmpeg2/decode.c b/src/libmpeg2/decode.c index c4d456fa1..072622075 100644 --- a/src/libmpeg2/decode.c +++ b/src/libmpeg2/decode.c @@ -307,6 +307,8 @@ int mpeg2_decode_data (mpeg2dec_t * mpeg2dec, uint8_t * current, uint8_t * end, chunk_ptr = mpeg2dec->chunk_ptr; mpeg2dec->pts = pts; + printf ("mpeg2_decode_data\n"); + while (current != end) { while (1) { byte = *current++; @@ -329,6 +331,7 @@ int mpeg2_decode_data (mpeg2dec_t * mpeg2dec, uint8_t * current, uint8_t * end, /* found start_code following chunk */ + printf ("mpeg2: parse_chunk\n"); ret += parse_chunk (mpeg2dec, mpeg2dec->code, mpeg2dec->chunk_buffer, pts); /* done with header or slice, prepare for next one */ diff --git a/src/libmpeg2/xine_decoder.c b/src/libmpeg2/xine_decoder.c index 2892aabd9..932e59ee3 100644 --- a/src/libmpeg2/xine_decoder.c +++ b/src/libmpeg2/xine_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: xine_decoder.c,v 1.3 2001/04/29 14:32:11 guenter Exp $ + * $Id: xine_decoder.c,v 1.4 2001/04/30 23:07:00 guenter Exp $ * * stuff needed to turn libmpeg2 into a xine decoder plugin */ @@ -46,12 +46,16 @@ void mpeg2dec_init (video_decoder_t *this_gen, vo_instance_t *video_out) { mpeg2dec_decoder_t *this = (mpeg2dec_decoder_t *) this_gen; + printf ("libmpeg: initializing mpeg2dec\n"); + mpeg2_init (&this->mpeg2, video_out); } void mpeg2dec_decode_data (video_decoder_t *this_gen, buf_element_t *buf) { mpeg2dec_decoder_t *this = (mpeg2dec_decoder_t *) this_gen; + printf ("libmpeg: decoding data (pts = %d)\n", buf->PTS); + mpeg2_decode_data (&this->mpeg2, buf->content, buf->content + buf->size, buf->PTS); } |