summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libmpeg2/decode.c8
-rw-r--r--src/libmpeg2/xine_decoder.c5
2 files changed, 11 insertions, 2 deletions
diff --git a/src/libmpeg2/decode.c b/src/libmpeg2/decode.c
index a67d1c544..6b3dc79d8 100644
--- a/src/libmpeg2/decode.c
+++ b/src/libmpeg2/decode.c
@@ -283,6 +283,10 @@ static inline int parse_chunk (mpeg2dec_t * mpeg2dec, int code,
switch (picture->picture_coding_type) {
case B_TYPE:
+#ifdef LOG
+ printf ("libmpeg2: B-Frame\n");
+#endif
+
if (mpeg2dec->frames_to_drop>1) {
#ifdef LOG
printf ("libmpeg2: dropping b-frame because frames_to_drop==%d\n",
@@ -310,6 +314,10 @@ static inline int parse_chunk (mpeg2dec_t * mpeg2dec, int code,
case P_TYPE:
+#ifdef LOG
+ printf ("libmpeg2: P-Frame\n");
+#endif
+
if (mpeg2dec->frames_to_drop>2) {
mpeg2dec->drop_frame = 1;
#ifdef LOG
diff --git a/src/libmpeg2/xine_decoder.c b/src/libmpeg2/xine_decoder.c
index 65d6276a1..9aa5cf7ab 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.41 2002/10/18 16:46:24 jcdutton Exp $
+ * $Id: xine_decoder.c,v 1.42 2002/10/29 01:29:46 guenter Exp $
*
* stuff needed to turn libmpeg2 into a xine decoder plugin
*/
@@ -39,6 +39,7 @@
/*
#define LOG
*/
+
typedef struct {
video_decoder_class_t decoder_class;
} mpeg2_class_t;
@@ -57,7 +58,7 @@ static void mpeg2dec_decode_data (video_decoder_t *this_gen, buf_element_t *buf)
mpeg2dec_decoder_t *this = (mpeg2dec_decoder_t *) this_gen;
#ifdef LOG
- printf ("libmpeg2: decode_data...\n");
+ printf ("libmpeg2: decode_data, flags=0x%08x ...\n", buf->decoder_flags);
#endif
pthread_mutex_lock (&this->lock);