Hello, I am trying to implement loading video frame from the video to the texture for the opengl in c++.<br>Here is my code: <a href="http://paste.pocoo.org/show/517832/">http://paste.pocoo.org/show/517832/</a> and header file: <a href="http://paste.pocoo.org/show/517831/">http://paste.pocoo.org/show/517831/</a> <br>
However, during the third load_frame() of the constructors call, I always end with seg fault:<br><br>#0 0x00007ffff67fe3bf in avcodec_default_release_buffer ()<br> from /usr/lib/libavcodec.so.53<br>#1 0x00007ffff674392e in ?? () from /usr/lib/libavcodec.so.53<br>
#2 0x00007ffff658cc41 in ?? () from /usr/lib/libavcodec.so.53<br>#3 0x00007ffff67ff138 in avcodec_decode_video2 ()<br> from /usr/lib/libavcodec.so.53<br>#4 0x000000000040b032 in VideoObject::load_frame (this=0xd13dd0)<br>
at ../src/api/implementation/VideoObject.cpp:83<br>#5 0x000000000040ae56 in VideoObject::VideoObject (this=0xd13dd0, io=<br> 0x82da00, name=0xaf28c0 "test", wx=800, wy=600, fps=60)<br><br>Does anyone know what to do?<br>