vlc | branch: master | Steve Lhomme <[email protected]> | Wed Jul  4 11:28:28 
2018 +0200| [366b93d783ee9ee6cc3e6e14eb39099c5569d542] | committer: Steve Lhomme

v4l2: remove static_assert on CLOCK_FREQ

it was there because the microsecond conversion assumed CLOCK_FREQ was 1,000,000

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=366b93d783ee9ee6cc3e6e14eb39099c5569d542
---

 modules/access/v4l2/video.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/modules/access/v4l2/video.c b/modules/access/v4l2/video.c
index 7b0c86add4..4a4802368b 100644
--- a/modules/access/v4l2/video.c
+++ b/modules/access/v4l2/video.c
@@ -568,7 +568,6 @@ vlc_tick_t GetBufferPTS (const struct v4l2_buffer *buf)
     {
         case V4L2_BUF_FLAG_TIMESTAMP_MONOTONIC:
             pts = vlc_tick_from_timeval( &buf->timestamp );
-            static_assert (CLOCK_FREQ == 1000000, "Clock unit mismatch");
             break;
         case V4L2_BUF_FLAG_TIMESTAMP_UNKNOWN:
         default:

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to