mirror of
https://github.com/videolan/vlc.git
synced 2024-11-23 18:03:48 +08:00
libvlc: hardcode the bits per pixel for ARGB stride
It may not even correspond to the padding we may use with a real picture.
This commit is contained in:
parent
15fc2b8f97
commit
7bbd08dc23
@ -190,7 +190,7 @@ libvlc_picture_type_t libvlc_picture_type( const libvlc_picture_t* pic )
|
||||
unsigned int libvlc_picture_get_stride( const libvlc_picture_t *pic )
|
||||
{
|
||||
assert( pic->type == libvlc_picture_Argb );
|
||||
return pic->fmt.i_width * pic->fmt.i_bits_per_pixel / 8;
|
||||
return pic->fmt.i_width * 4;
|
||||
}
|
||||
|
||||
unsigned int libvlc_picture_get_width( const libvlc_picture_t* pic )
|
||||
|
Loading…
Reference in New Issue
Block a user