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)
committerJames Almer <jamrial@gmail.com>
Thu, 22 Mar 2018 20:13:56 +0000 (17:13 -0300)
commit016d40011ac2815157fc11f6dda2f9bfb520ecfe
tree0422234395ca7507812c14cdb364744519ee2e79
parent4f2ff3a53e170d77e1dd231d7246a74e186011c9
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>
libavcodec/extract_extradata_bsf.c