diff options
author | Maxime Jourdan <mjourdan@baylibre.com> | 2019-08-30 14:19:12 -0700 |
---|---|---|
committer | Aman Gupta <aman@tmm1.net> | 2019-09-11 13:07:42 -0700 |
commit | b81a1c5bea34da7b145c4dd95a7680cdfa42168f (patch) | |
tree | 17deee0ab6ec2ea626e7d3893af47d76bd91b860 /libavcodec/v4l2_buffers.c | |
parent | 0085c4d47856aa74ce605ab1758917f1ace1253c (diff) | |
download | ffmpeg-b81a1c5bea34da7b145c4dd95a7680cdfa42168f.tar.gz |
avcodec/v4l2_context: set frame SAR using VIDIOC_CROPCAP
Signed-off-by: Aman Gupta <aman@tmm1.net>
Diffstat (limited to 'libavcodec/v4l2_buffers.c')
-rw-r--r-- | libavcodec/v4l2_buffers.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/v4l2_buffers.c b/libavcodec/v4l2_buffers.c index 0b7a795977..ca8045f8d1 100644 --- a/libavcodec/v4l2_buffers.c +++ b/libavcodec/v4l2_buffers.c @@ -428,9 +428,10 @@ int ff_v4l2_buffer_buf_to_avframe(AVFrame *frame, V4L2Buffer *avbuf) frame->pts = v4l2_get_pts(avbuf); frame->pkt_dts = AV_NOPTS_VALUE; - /* these two values are updated also during re-init in v4l2_process_driver_event */ + /* these values are updated also during re-init in v4l2_process_driver_event */ frame->height = avbuf->context->height; frame->width = avbuf->context->width; + frame->sample_aspect_ratio = avbuf->context->sample_aspect_ratio; /* 3. report errors upstream */ if (avbuf->buf.flags & V4L2_BUF_FLAG_ERROR) { |