Hi,<br><br>I would like to decode 10bit videos into PIX_FMT_YUV422P10LE pixel format, using:<br><br>    struct SwsContext* swContext  = sws_getContext(width, height, originalpixfmt,<br>                                        width, height, PIX_FMT_YUV422P10LE,<br>

                                        SWS_FAST_BILINEAR, NULL, NULL, NULL);<br><br>    sws_scale(swContext, frame->data, frame->linesize, 0, height,<br>                    frameYUV->data, frameYUV->linesize);<br>

<br>However, the decoded frameYUV->data is of type uint8_t, and I would expect to get something able to store 10bit values like a uint16_t. So, what is returned in this 8bit array in this case? How can I proceed to get the 10bit values?<br>

<br>Thanks for your help.<br clear="all"><br>Nigel<br>