]> git.sesse.net Git - ffmpeg/commit
avcodec/v4l2_buffers: read height/width from the proper context
authorAman Gupta <aman@tmm1.net>
Fri, 30 Aug 2019 21:02:48 +0000 (14:02 -0700)
committerAman Gupta <aman@tmm1.net>
Wed, 11 Sep 2019 17:28:56 +0000 (10:28 -0700)
commit8dc973dc89194d536425f7042b90bb6d3808be23
tree1637584febf618f0720b2a6ef8d4371e01139d34
parentefc73b13ac397764d381fb8e7a07dd2cdf37ebd3
avcodec/v4l2_buffers: read height/width from the proper context

Frames are generally dequeued into capture buffers, so using
the output properties here was incorrect. It happened to work
fine for decoding, since the output/capture buffers have the same
dimensions.

For the v4l2 scaler, the dimensions can be different between output
and capture. Using the buffer's associated context makes this code
work correctly regardless of where the frame is coming from.

Signed-off-by: Aman Gupta <aman@tmm1.net>
libavcodec/v4l2_buffers.c