From fd8e6974794cf6223d2f8f6978d1b6bcde1942fb Mon Sep 17 00:00:00 2001 From: kramm Date: Mon, 20 Sep 2004 16:16:56 +0000 Subject: [PATCH] fixed frame display. --- avi2swf/videoreader_vfw.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/avi2swf/videoreader_vfw.cc b/avi2swf/videoreader_vfw.cc index b809eb0..3a3cfa6 100644 --- a/avi2swf/videoreader_vfw.cc +++ b/avi2swf/videoreader_vfw.cc @@ -162,6 +162,7 @@ int videoreader_vfw_getimage(videoreader_t* vr, void*buffer) bi = (LPBITMAPINFOHEADER)AVIStreamGetFrame(i->getframe, i->video_pos); i->video_pos++; + vr->frame++; if(!bi) { fprintf(stderr, "AVIStreamGetFrame failed\n"); @@ -330,6 +331,7 @@ int videoreader_vfw_open(videoreader_t* vr, char* filename) i->getframe = AVIStreamGetFrameOpen(i->vs, 0); if(!i->getframe) { + fprintf(stderr, "Couldn't initialize AVIStream for %s- codec missing?\n", filename); return -1; } -- 1.7.10.4