[FFmpeg-cvslog] r25003 - trunk/libavcodec/a64multienc.c

Tobias Bindhammer tobias.bindhammer
Tue Aug 31 11:01:44 CEST 2010


> I didn't look carefully enough to know, but who's going to free the
> ones for which the allocation worked?
> 
>>      /* set up extradata */
>> -    avctx->extradata      = av_mallocz(8 * 4 + FF_INPUT_BUFFER_PADDING_SIZE);
>> +    if(!(avctx->extradata = av_mallocz(8 * 4 + FF_INPUT_BUFFER_PADDING_SIZE))) {
>> +        av_log(avctx, AV_LOG_ERROR, "Failed to allocate memory for extradata.\n");
>> +        return AVERROR(ENOMEM);
>> +    }
> 
> same here, is there somewhere where all of the aboves are freed?
> 

coresponding frees are in a64multi_close_encoder()

regards,

Toby

-- 
Dipl. Ing. Tobias Bindhammer
Institut f?r Verteilte Systeme
Oberer Eselsberg          Phone: + 49 731/502-4235
Universit?t Ulm           Fax  : + 49 731/502-4142
D-89069 Ulm               mailto:tobias.bindhammer at uni-ulm.de
http://www-vs.informatik.uni-ulm.de/~bindhammer/



More information about the ffmpeg-cvslog mailing list