This is av_init_packet()'s job.  Note that it doesn't even set all fields to 0, some are set to e.g. -1:
http://www.ffmpeg.org/doxygen/trunk/avpacket_8c_source.html#l00049

-[Unknown]