Found the problem. There is missing a buf_unref in display_frame in the first sample, this was corrected later in the discussion. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20110620/59ee9c49/attachment.html>