summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2008-04-21 19:02:07 +0100
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2008-04-21 19:02:07 +0100
commit234c38847028aacb179ddb41cf88a7e7d92b7e48 (patch)
treebbb3dd7f90d596611f055c6800ee00fbcb2a3493
parente3ab3794e99360e2ddcfb79ee46dd32cff655e1e (diff)
downloadxine-lib-234c38847028aacb179ddb41cf88a7e7d92b7e48.tar.gz
xine-lib-234c38847028aacb179ddb41cf88a7e7d92b7e48.tar.bz2
Debug logging of ffmpeg pixel format in case of display errors.
-rw-r--r--src/combined/ffmpeg/ff_video_decoder.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/combined/ffmpeg/ff_video_decoder.c b/src/combined/ffmpeg/ff_video_decoder.c
index 02282990b..d4a355d65 100644
--- a/src/combined/ffmpeg/ff_video_decoder.c
+++ b/src/combined/ffmpeg/ff_video_decoder.c
@@ -121,6 +121,10 @@ struct ff_video_decoder_s {
yuv_planes_t yuv;
AVPaletteControl palette_control;
+
+#ifdef LOG
+ enum PixelFormat debug_fmt;
+#endif
};
@@ -589,6 +593,11 @@ static void ff_convert_frame(ff_video_decoder_t *this, vo_frame_t *img) {
int y;
uint8_t *dy, *du, *dv, *sy, *su, *sv;
+#ifdef LOG
+ if (this->debug_fmt != this->context->pix_fmt)
+ printf ("frame format == %08x\n", this->debug_fmt = this->context->pix_fmt);
+#endif
+
dy = img->base[0];
du = img->base[1];
dv = img->base[2];
@@ -1581,6 +1590,10 @@ static video_decoder_t *ff_video_open_plugin (video_decoder_class_t *class_gen,
this->dr1_frames = xine_list_new();
+#ifdef LOG
+ this->debug_fmt = -1;
+#endif
+
return &this->video_decoder;
}