avcodec/extract_extradata: don't uninitialize the H2645Packet on every processed...
authorJames Almer <jamrial@gmail.com>
Sat, 10 Mar 2018 22:57:35 +0000 (19:57 -0300)
committerLuca Barbato <lu_zero@gentoo.org>
Sat, 6 Oct 2018 19:31:54 +0000 (21:31 +0200)
commit3365e91b1ed82f225aaa15c5c27504873f4b8c7a
tree73a0dc343e2c587ad474c2251feeccaf48f21868
parent6442d8bad68052a1d42565fbbad85695fadd26c1
avcodec/extract_extradata: don't uninitialize the H2645Packet on every processed packet

Based on hevc_parser code. This prevents repeated unnecessary allocations
and frees on every packet processed by the bsf.

Reviewed-by: Jun Zhao <mypopydev@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavcodec/extract_extradata_bsf.c