<div dir="ltr"><div>Hello. I have been wrestling with a bug for a long while now. I'm new at this, so I figure it's coming from me, but I just can't find the issue. I am trying to decode the h264 video stream from an AR.Drone, but every time I call avcodec_decode_video2( ) my program immediately segfaults. I posted this on stack overflow in detail (includes link to source code, console output, and valgrind output):</div>
<div><br></div><a href="http://stackoverflow.com/questions/22161211/ar-drone-2-ffmpeg-avcodec-decode-video2-segmentation-fault">http://stackoverflow.com/questions/22161211/ar-drone-2-ffmpeg-avcodec-decode-video2-segmentation-fault</a><div>
<br></div><div>The only response I received there doesn't seem relevant or helpful.</div><div><br></div><div>Btw, if I use "codecContext->debug = true;", I get a segfault in a different avcodec library function call. I can post that valgrind output later as well, but I don't have access to it right now.<br>
</div><div><br></div><div>Does anyone have any suggestions? I really don't want to abandon my c++ implementation of this.<br></div><div><br></div><div>Thanks,</div><div>Jason</div></div>