Zhang Rui <bbcallen <at> gmail.com> writes: > + cat->avf = avformat_alloc_context(); > + if (!cat->avf) > + return -1; Shouldn't this be ENOMEM? Is this freed in the non-error case? Carl Eugen