]> git.sesse.net Git - ffmpeg/commit
avcodec/v4l2_m2m: fix av_pix_fmt changing when multiple /dev/video* devices are probed
authorAman Gupta <aman@tmm1.net>
Wed, 28 Aug 2019 00:21:36 +0000 (17:21 -0700)
committerAman Gupta <aman@tmm1.net>
Wed, 11 Sep 2019 01:52:37 +0000 (18:52 -0700)
commit7bb6898b16f3c5b1cd5c4c15ca96278df569ccd2
treead14565005692c9de754e0318187102a50ff1750
parentac52e06e56fd0232f13c0da74177181e04172e00
avcodec/v4l2_m2m: fix av_pix_fmt changing when multiple /dev/video* devices are probed

On the RPI, three different /dev/video devices exist (decoder, scaler, encoder).

When probing the devices in order, the originally requested pix fmt
would be mutated causing the wrong one to be chosen when a matching
device was finally found.

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