[Encode] fix coverity issue #2336
ubuntu.yml
on: push
clang14
20m 35s
gcc-11
23m 15s
gcc-10
22m 56s
gcc-10-production-kmd
22m 49s
gcc-10-nonfree-kernels-off
20m 52s
gcc-10-kernels-off
20m 40s
gcc-10-gen8-off
22m 32s
gcc-10-gen9-off
21m 57s
gcc-10-gen11-off
21m 33s
gcc-10-gen12-off
17m 4s
gcc-10-mtl-off
22m 32s
gcc-10-arl-off
22m 15s
gcc-10-AVC-HEVC-exclude
18m 24s