[FFmpeg-devel] [RFC] about av_init_packet
Jun Zhao
mypopydev at gmail.com
Mon Jan 22 09:55:46 EET 2018
Hi, all:
When I read the code about av_init_packet(), I found we use
av_init_packet() in most cases like this:
av_init_packet(&enc_pkt);
enc_pkt.data = NULL;
enc_pkt.size = 0;
my question is: is it have any special reason to put
AVPakcet.date/size initialization outside av_init_packet()?
If don't have special reason, I will submit a patch to put
the data/size initialization in av_init_packet() and remove the
explicit initialization for data/size field.
Thanks.
More information about the ffmpeg-devel
mailing list