On Tue, Jul 22, 2008 at 06:29:03PM +0200, spyfeng wrote: > @@ -245,12 +246,17 @@ static int klv_encode_ber_length(ByteIOC > // long form > put_byte(pb, 0x80 + size); > i = size; > + tmp_buf = av_mallocz(size); > + if (!tmp_buf) > + return -1; AVERROR(ENOMEM)