comparison qpeg.c @ 2586:00d9abc5f76f libavcodec

free that last frame
author melanson
date Mon, 28 Mar 2005 20:40:21 +0000
parents f67b63ed036d
children 6bf98adb22a1
comparison
equal deleted inserted replaced
2585:1ef8fab234c8 2586:00d9abc5f76f
278 return 0; 278 return 0;
279 } 279 }
280 280
281 static int decode_end(AVCodecContext *avctx){ 281 static int decode_end(AVCodecContext *avctx){
282 QpegContext * const a = avctx->priv_data; 282 QpegContext * const a = avctx->priv_data;
283 AVFrame * const p= (AVFrame*)&a->pic;
284
285 if(p->data[0])
286 avctx->release_buffer(avctx, p);
283 287
284 av_free(a->refdata); 288 av_free(a->refdata);
285 return 0; 289 return 0;
286 } 290 }
287 291