[FFmpeg-devel] [PATCH] libavutil/hwcontext_opencl.c: fix bug in `opencl_get_plane_format`

Cld fire cldfire3 at gmail.com
Mon Apr 8 03:10:59 EEST 2019


>
> For P010, I guess that division needs to round up?
>

Yep, rounding the division up did the trick; thanks!

One last observation before I submit a new patch: I actually missed
previously that the order number is still not lining up for the ARGB format
(the order number that maps to ARGB in the code is currently 4123 while the
new method using the offset and depth is ending up with an order number of
2341). Simply changing the order number that maps to ARGB from 4123 to 2341
seems to work fine; is it okay to make that change or do the mapping
numbers need to remain exactly the same?


More information about the ffmpeg-devel mailing list