[FFmpeg-devel] Fwd: Questionable libav code

2016-02-02 Thread Ratin
libavcodec has codes like this one (utils.c): static AVPacket *add_to_pktbuf(AVPacketList **packet_buffer, AVPacket *pkt, AVPacketList **plast_pktl) { AVPacketList *pktl = av_mallocz(sizeof(AVPacketList)); if (!pktl) return NULL; if (*packet_buff

Re: [FFmpeg-devel] Fwd: Questionable libav code

2016-02-02 Thread wm4
On Tue, 2 Feb 2016 14:31:20 -0800 Ratin wrote: > libavcodec has codes like this one (utils.c): > > static AVPacket *add_to_pktbuf(AVPacketList **packet_buffer, AVPacket *pkt, >AVPacketList **plast_pktl) > { > AVPacketList *pktl = av_mallocz(sizeof(AVPacketList

Re: [FFmpeg-devel] Fwd: Questionable libav code

2016-02-07 Thread Ratin
On Tue, Feb 2, 2016 at 11:41 PM, wm4 wrote: > On Tue, 2 Feb 2016 14:31:20 -0800 > Ratin wrote: > > > libavcodec has codes like this one (utils.c): > > > > static AVPacket *add_to_pktbuf(AVPacketList **packet_buffer, AVPacket > *pkt, > >AVPacketList **plast_pktl) >

Re: [FFmpeg-devel] Fwd: Questionable libav code

2016-02-07 Thread Hendrik Leppkes
On Sun, Feb 7, 2016 at 6:38 PM, Ratin wrote: > On Tue, Feb 2, 2016 at 11:41 PM, wm4 wrote: > >> On Tue, 2 Feb 2016 14:31:20 -0800 >> Ratin wrote: >> >> > libavcodec has codes like this one (utils.c): >> > >> > static AVPacket *add_to_pktbuf(AVPacketList **packet_buffer, AVPacket >> *pkt, >> >