Re: [FFmpeg-devel] [RFC] about av_init_packet

2018-01-22 Thread Jun Zhao
On 2018/1/22 22:15, wm4 wrote: > On Mon, 22 Jan 2018 09:58:56 +0100 > Hendrik Leppkes wrote: > >> On Mon, Jan 22, 2018 at 8:55 AM, Jun Zhao wrote: >>> 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_p

Re: [FFmpeg-devel] [RFC] about av_init_packet

2018-01-22 Thread wm4
On Mon, 22 Jan 2018 09:58:56 +0100 Hendrik Leppkes wrote: > On Mon, Jan 22, 2018 at 8:55 AM, Jun Zhao wrote: > > 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 =

Re: [FFmpeg-devel] [RFC] about av_init_packet

2018-01-22 Thread Hendrik Leppkes
On Mon, Jan 22, 2018 at 8:55 AM, Jun Zhao wrote: > 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 re