diff --git a/ffmpeg.c b/ffmpeg.c
index 76d157f1a38de8fbd0fc996529084eb8093d3847..d14ba469879e5b188cc0cc4eab0a54bf83928c3e 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -730,6 +730,7 @@ static void pre_process_video_frame(AVInputStream *ist, AVPicture *picture, void
             if(avpicture_deinterlace(picture2, picture,
                                      dec->pix_fmt, dec->width, dec->height) < 0) {
                 /* if error, do not deinterlace */
+                fprintf(stderr, "Deinterlacing failed\n");
                 av_free(buf);
                 buf = NULL;
                 picture2 = picture;