avformat/av1: Avoid allocation for small headers
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 27 Nov 2019 12:22:07 +0000 (13:22 +0100)
committerJames Almer <jamrial@gmail.com>
Thu, 28 Nov 2019 18:20:37 +0000 (15:20 -0300)
commita31f68fb449eaf6f030ce5633435663f154bb34d
tree41579ac790215b1b84c484a97a873467c7e98dd0
parent67ce9e0463e170179ece4abc33be716282a0202b
avformat/av1: Avoid allocation for small headers

By using avio_get_dyn_buf() + ffio_free_dyn_buf() instead of
avio_close_dyn_buf() + av_free() one can avoid an allocation + copy for
small headers. Furthermore, it simplifies freeing.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/av1.c