-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hey Keith,
thanks a lot for your help. I tried it yesterday and now all the frames are decoded in the right way. You helped a lot! But I still have a little problem. Maybe you can suggest a good way to solve it: When loading a file, I store stream positions of the I-frames as entry points. When jumping to a new frame, I select the nearest I-frame and start decoding the whole GOP up to the next I-frame (as suggested by you). I use ftell() and fseek() for moving within the file stream and reset the decoder handle with mpeg2_reset( handle, 0 ). Is that a good way to do it? Forward seeking works fine, but backward seeking seems to shift the correct position. So jumping from frame 50 to frame 0, displays a frame somewhere in between...maybe 17 or something. Any idea what the problem could be? What would you suggest is the best reference of a picture within the stream? Again, thanks a lot for any further help. And a happy Easter to everyone btw. Cheers, Sebastian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGFklT/ZEwc0fz/xMRAuM0AJ4jl3AvLdhpOj3MkhBpCqc1YNJ7pACfSA3H zbtUmarxqWDr1RX4WFugp10= =O1G6 -----END PGP SIGNATURE----- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Libmpeg2-devel mailing list Libmpeg2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmpeg2-devel