[FFmpeg-cvslog] avcodec/v4l2_buffers: return int64_t in v4l2_get_pts

Lukas Rusak git at videolan.org
Tue Sep 3 01:26:44 EEST 2019


ffmpeg | branch: master | Lukas Rusak <lorusak at gmail.com> | Mon Jan  8 15:27:37 2018 -0800| [1d36b7b47ad421a857d22add111fd19d89964ee7] | committer: Aman Gupta

avcodec/v4l2_buffers: return int64_t in v4l2_get_pts

v4l2_pts is type int64_t we should return that instead of uint64_t

Signed-off-by: Aman Gupta <aman at tmm1.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1d36b7b47ad421a857d22add111fd19d89964ee7
---

 libavcodec/v4l2_buffers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/v4l2_buffers.c b/libavcodec/v4l2_buffers.c
index 4f889509f9..51b0d25cad 100644
--- a/libavcodec/v4l2_buffers.c
+++ b/libavcodec/v4l2_buffers.c
@@ -62,7 +62,7 @@ static inline void v4l2_set_pts(V4L2Buffer *out, int64_t pts)
     out->buf.timestamp.tv_sec = v4l2_pts / USEC_PER_SEC;
 }
 
-static inline uint64_t v4l2_get_pts(V4L2Buffer *avbuf)
+static inline int64_t v4l2_get_pts(V4L2Buffer *avbuf)
 {
     V4L2m2mContext *s = buf_to_m2mctx(avbuf);
     AVRational v4l2_timebase = { 1, USEC_PER_SEC };



More information about the ffmpeg-cvslog mailing list