h265parser: Fix short_term_ref_pic_set() size calculation
authorSeungha Yang <seungha@centricular.com>
Fri, 11 Mar 2022 11:46:11 +0000 (20:46 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 7 Apr 2022 18:46:12 +0000 (18:46 +0000)
commitd4f9676c9c8a74f1e13bf5e175a3d30b0ee097b3
treeea0682ce97f9e20fa68685277fd174a62ba27ed2
parentbd5d24822a73b84a736ac362cbf68494dc206058
h265parser: Fix short_term_ref_pic_set() size calculation

This field is used by DXVA/NVDEC/VA, and each specification
describes (NVDEC is not well documented) that it's the number of
bits used in short_term_ref_pic_set().

DXVA doesn't explicitly mention that whether the size of
emulation preventation bytes (EPB) is inclusive or not, but
VA is clearly specifying that it's the size after removing
EPB. Excluding EPB size here makes more sense therefore.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1930>
subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.c
subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gsth265parser.h