[Libav-user] Segfault with libavcodec

Peter Enerccio enerccio at gmail.com
Thu Dec 8 03:26:24 CET 2011

Hello, I am trying to implement loading video frame from the video to the
texture for the opengl in c++.
Here is my code: http://paste.pocoo.org/show/517832/ and header file:
However, during the third load_frame() of the constructors call, I always
end with seg fault:

#0  0x00007ffff67fe3bf in avcodec_default_release_buffer ()
   from /usr/lib/libavcodec.so.53
#1  0x00007ffff674392e in ?? () from /usr/lib/libavcodec.so.53
#2  0x00007ffff658cc41 in ?? () from /usr/lib/libavcodec.so.53
#3  0x00007ffff67ff138 in avcodec_decode_video2 ()
   from /usr/lib/libavcodec.so.53
#4  0x000000000040b032 in VideoObject::load_frame (this=0xd13dd0)
    at ../src/api/implementation/VideoObject.cpp:83
#5  0x000000000040ae56 in VideoObject::VideoObject (this=0xd13dd0, io=
    0x82da00, name=0xaf28c0 "test", wx=800, wy=600, fps=60)

Does anyone know what to do?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20111208/4e2f7adc/attachment.html>

More information about the Libav-user mailing list