Mercurial > libavcodec.hg
diff mpegvideo.c @ 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 | 7b62de9c383d |
line wrap: on
line diff
--- a/mpegvideo.c Tue Mar 10 17:38:16 2009 +0000 +++ b/mpegvideo.c Wed Mar 11 08:25:00 2009 +0000 @@ -183,7 +183,7 @@ if (s->avctx->hwaccel) { assert(!pic->hwaccel_data_private); if (s->avctx->hwaccel->priv_data_size) { - pic->hwaccel_data_private = av_malloc(s->avctx->hwaccel->priv_data_size); + pic->hwaccel_data_private = av_mallocz(s->avctx->hwaccel->priv_data_size); if (!pic->hwaccel_data_private) { av_log(s->avctx, AV_LOG_ERROR, "alloc_frame_buffer() failed (hwaccel private data allocation)\n"); return -1;
