diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index 1f20cd1e6b..7383d12d3e 100644 --- a/libavcodec/avpacket.c +++ b/libavcodec/avpacket.c @@ -58,7 +58,7 @@ static void get_packet_defaults(AVPacket *pkt) AVPacket *av_packet_alloc(void) { - AVPacket *pkt = av_mallocz(sizeof(AVPacket)); + AVPacket *pkt = av_malloc(sizeof(AVPacket)); if (!pkt) return pkt;