Jump to content
  • Advertisement

AVIStreamGetFrameOpen returns nullptr...

This topic is 473 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, hey, hey!

Would like to include in my game 2 short avi videos I made in Blender.

Went over NeHe lesson 35, it reads the supplied avi file but when I try to read my avi files,

they both give nullptr for lpbi because of pgf being nullptr on line 106, see below.

There is a similar post on stackoverflow, link here below as well.

Would you, please, update the tutorial, please?

Thank you so very much! ;-)))

PS. Here attached one of the avi files I am trying to read.

	pgf=AVIStreamGetFrameOpen(pavi, NULL);						// Create The PGETFRAME	Using Our Request Mode
	if (pgf==NULL)
		// An Error Occurred Opening The Frame
		MessageBox (HWND_DESKTOP, "Failed To Open The AVI Frame", "Error", MB_OK | MB_ICONEXCLAMATION);


Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!