]> git.sesse.net Git - ffmpeg/commit
avcodec/avpacket: Improve allocating packets
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 18 Sep 2019 03:26:05 +0000 (05:26 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 18 Sep 2019 20:53:00 +0000 (22:53 +0200)
commite12a2a2d73436e1514293367ec662562df1780e3
tree294f903f6dee44961f6ab5791f67899c0c2e9a71
parent9442b0de1bf607ef9577623780897c0380736dd7
avcodec/avpacket: Improve allocating packets

av_mallocz + av_init_packet leads to the same result as av_mallocz +
av_packet_unref, but faster.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/avpacket.c