[FFmpeg-devel,1/3] libavcodec/v4l2_buffers: return int64_t in v4l2_get_pts

Submitted by Lukas Rusak on Jan. 8, 2018, 11:27 p.m.

Details

Message ID 20180108232739.24962-2-lorusak@gmail.com
State New
Headers show

Commit Message

Lukas Rusak Jan. 8, 2018, 11:27 p.m.
v4l2_pts is type int64_t we should return that instead of uint64_t

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

Patch hide | download patch | download mbox

diff --git a/libavcodec/v4l2_buffers.c b/libavcodec/v4l2_buffers.c
index ba70c5d14b..fdafe7edca 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 };