Re: [PATCH] media: coda: limit frame interval enumeration to supported encoder frame sizes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Hans,

On Do, 2022-04-28 at 09:51 +0200, Hans Verkuil wrote:
> On 26/04/2022 11:15, Philipp Zabel wrote:
> > Let VIDIOC_ENUM_FRAMEINTERVALS return -EINVAL if userspace queries
> > frame intervals for frame sizes unsupported by the encoder. Fixes the
> > following v4l2-compliance failure:
> > 
> > 		fail: v4l2-test-formats.cpp(123): found frame intervals for invalid size 47x16
> > 		fail: v4l2-test-formats.cpp(282): node->codec_mask & STATEFUL_ENCODER
> > 	test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: FAIL
> > 
> > For decoder devices, return -ENOTTY.
> 
> Shouldn't that be 'encoder devices'?
> 
> And why mention it at all since this isn't part of the changes in this patch?
> 
> I can drop this last sentence, if you like, but before I do that I need
> confirmation that that's OK.

Yes please, thank you for catching this. It is an artifact from when I
rebased this patch past a3b9b81462a2 ("media: coda: disable encoder
ioctls for decoder devices").

regards
Philipp



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux