comparison avcodec.h @ 9161:3a54ad453dbf libavcodec

Use av_mallocz() to initialize hwaccel_data_private.
author gb
date Wed, 11 Mar 2009 08:25:00 +0000
parents 9e66ada64b76
children 12f23f37664b
comparison
equal deleted inserted replaced
9160:678152bdb3a1 9161:3a54ad453dbf
2465 int (*end_frame)(AVCodecContext *avctx); 2465 int (*end_frame)(AVCodecContext *avctx);
2466 2466
2467 /** 2467 /**
2468 * Size of HW accelerator private data. 2468 * Size of HW accelerator private data.
2469 * 2469 *
2470 * Private data is allocated with av_malloc() before 2470 * Private data is allocated with av_mallocz() before
2471 * AVCodecContext::get_buffer() and deallocated after 2471 * AVCodecContext.get_buffer() and deallocated after
2472 * AVCodecContext::release_buffer(). 2472 * AVCodecContext.release_buffer().
2473 */ 2473 */
2474 int priv_data_size; 2474 int priv_data_size;
2475 } AVHWAccel; 2475 } AVHWAccel;
2476 2476
2477 /** 2477 /**