|
| 1 | +From 568dd0026ac86878bf6f0c99ac837a964525860f Mon Sep 17 00:00:00 2001 |
| 2 | +From: Caner Altinbasak < [email protected]> |
| 3 | +Date: Sat, 26 Jul 2025 12:47:57 +0100 |
| 4 | +Subject: [PATCH] chromium: fix v4l2 compiler error on arm |
| 5 | + |
| 6 | +fixes: |
| 7 | +../../media/gpu/v4l2/legacy/v4l2_video_decoder_backend_stateful.cc:450:20: |
| 8 | +error: non-constant-expression cannot be narrowed from type '__suseconds64_t' |
| 9 | +(aka 'long long') to 'long' in initializer list [-Wc++11-narrowing] |
| 10 | + |
| 11 | +Upstream-Status: Inappropriate [specific to our build setup] |
| 12 | +--- |
| 13 | + media/gpu/v4l2/legacy/v4l2_video_decoder_backend_stateful.cc | 2 +- |
| 14 | + 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | + |
| 16 | +diff --git a/media/gpu/v4l2/legacy/v4l2_video_decoder_backend_stateful.cc b/media/gpu/v4l2/legacy/v4l2_video_decoder_backend_stateful.cc |
| 17 | +index b77f2b08d7..9069b97c02 100644 |
| 18 | +--- a/media/gpu/v4l2/legacy/v4l2_video_decoder_backend_stateful.cc |
| 19 | ++++ b/media/gpu/v4l2/legacy/v4l2_video_decoder_backend_stateful.cc |
| 20 | +@@ -447,7 +447,7 @@ void V4L2StatefulVideoDecoderBackend::OnOutputBufferDequeued( |
| 21 | + const struct timeval timeval = buffer->GetTimeStamp(); |
| 22 | + const struct timespec timespec = { |
| 23 | + .tv_sec = timeval.tv_sec, |
| 24 | +- .tv_nsec = timeval.tv_usec * 1000, |
| 25 | ++ .tv_nsec = static_cast<long>(timeval.tv_usec * 1000), |
| 26 | + }; |
| 27 | + |
| 28 | + const int64_t flat_timespec = |
| 29 | +-- |
| 30 | +2.39.5 |
| 31 | + |
0 commit comments