h2645_parse: Allocate a single buffer per packet
authorKieran Kunhya <kierank@obe.tv>
Sat, 4 Nov 2017 17:41:06 +0000 (17:41 +0000)
committerYour Name <you@example.com>
Sat, 4 Nov 2017 18:06:45 +0000 (18:06 +0000)
commit03b82b3ab9883cef017e513c7d0b3b986b3b3e7b
tree56c68bb93e11ea3eed0869998566ad7f872861df
parent3357b68bc02d855a92656d7a474b22adb32ca1a7
h2645_parse: Allocate a single buffer per packet

Drastically reduces memory usage on pathological streams.
Fixes ticket #6789
libavcodec/h2645_parse.c
libavcodec/h2645_parse.h
libavcodec/h264_parser.c
libavcodec/qsvenc_hevc.c