Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use correct pointer type for CUdeviceptr on aarch64 in nvdec filter
This fixes the following warnings: ``` ... filters/dec_nvdec.c: In function ‘nvdec_flush_frame’: filters/dec_nvdec.c:1031:98: warning: passing argument 3 of ‘cuvidMapVideoFrame’ from incompatible pointer type [-Wincompatible-pointer-types] 1031 | res = cuvidMapVideoFrame(ctx->dec_inst->cu_decoder, f->frame_info.picture_index, &map_mem, &pitch, ¶ms); | ^~~~~~~~ | | | CUdeviceptr * {aka long long unsigned int *} filters/dec_nvdec.c:1031:98: note: expected ‘unsigned int *’ but argument is of type ‘CUdeviceptr *’ {aka ‘long long unsigned int *’} filters/dec_nvdec.c: In function ‘nvframe_get_gl_texture’: filters/dec_nvdec.c:1209:90: warning: passing argument 3 of ‘cuvidMapVideoFrame’ from incompatible pointer type [-Wincompatible-pointer-types] 1209 | res = cuvidMapVideoFrame(ctx->dec_inst->cu_decoder, f->frame_info.picture_index, &vid_data, &vid_pitch, ¶ms); | ^~~~~~~~~ | | | CUdeviceptr * {aka long long unsigned int *} filters/dec_nvdec.c:1209:90: note: expected ‘unsigned int *’ but argument is of type ‘CUdeviceptr *’ {aka ‘long long unsigned int *’} filters/dec_nvdec.c: In function ‘nvframe_get_frame’: filters/dec_nvdec.c:1319:98: warning: passing argument 3 of ‘cuvidMapVideoFrame’ from incompatible pointer type [-Wincompatible-pointer-types] 1319 | res = cuvidMapVideoFrame(ctx->dec_inst->cu_decoder, f->frame_info.picture_index, &map_mem, &pitch, ¶ms); | ^~~~~~~~ | | | CUdeviceptr * {aka long long unsigned int *} filters/dec_nvdec.c:1319:98: note: expected ‘unsigned int *’ but argument is of type ‘CUdeviceptr *’ {aka ‘long long unsigned int *’} ``` These became errors in GCC 14. Note: `CUdeviceptr` was already defined to `long long unsingned int *` on aarch64: https://github.com/gpac/gpac/blob/master/src/filters/dec_nvdec_sdk.h#L59 but the condition enabling the use of 64-bit pointers was missing in other places.
- Loading branch information