[Libav-user] libx264 randomly causing image tearing

DeHackEd git at dehacked.net
Sun Jun 19 20:41:58 CEST 2016

Just for the sake of closure, I think I solved it. I was using an AVPacket (non-pointer) on the stack. While I was sure
I was using it correctly and using av_packet_unref() before recycling it, switching to constant use of
av_packet_alloc/free in its place seems to have fixed the issue.

Well, not going to look a gift horse in the mouth. It's working, and that's what matters.

More information about the Libav-user mailing list