diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-06-30 19:04:51 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-07-25 23:32:08 +0200 |
commit | ad2b755d3f5c7870f7d2e14da5d1c5e7ca8f3786 (patch) | |
tree | 1f67e7edb62f443620171bf2e043140032944208 /libavformat/rtmpdigest.c | |
parent | 09393130a0bb07f92cac111068b8b45eeafc9254 (diff) | |
download | ffmpeg-ad2b755d3f5c7870f7d2e14da5d1c5e7ca8f3786.tar.gz |
avcodec/hevcdec: Don't allocate redundant HEVCContexts
The HEVC decoder has both HEVCContext and HEVCLocalContext
structures. The latter is supposed to be the structure
containing the per-slicethread state.
Yet up until now that is not how it is handled in practice:
Each HEVCLocalContext has a unique HEVCContext allocated for it
and each of these coincides except in exactly one field: The
corresponding HEVCLocalContext. This makes it possible to pass
the HEVCContext everywhere where logically a HEVCLocalContext
should be used. And up until recently, this is how it has been done.
Yet the preceding patches changed this, making it possible
to avoid allocating redundant HEVCContexts.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/rtmpdigest.c')
0 files changed, 0 insertions, 0 deletions