Commit 5640f981 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: avi: use enum for compressions

parent b50e8f43
......@@ -58,9 +58,6 @@
"Recreate a index for the AVI file. Use this if your AVI file is damaged "\
"or incomplete (not seekable)." )
#define BI_RAWRGB 0x00
#define BI_RGBBITFIELDS 0x03
static int Open ( vlc_object_t * );
static void Close( vlc_object_t * );
......@@ -558,7 +555,7 @@ static int Open( vlc_object_t * p_this )
es_format_Init( &tk->fmt, VIDEO_ES,
AVI_FourccGetCodec( VIDEO_ES, p_vids->p_bih->biCompression ) );
if( p_vids->p_bih->biCompression == BI_RAWRGB )
if( p_vids->p_bih->biCompression == BI_RGB )
{
switch( p_vids->p_bih->biBitCount )
{
......
......@@ -20,6 +20,19 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
enum biCompression
{
BI_RGB = 0x00,
BI_RLE8,
BI_RLE4,
BI_BITFIELDS,
BI_JPEG,
BI_PNG,
BI_CMYK = 0x0B,
BI_CMYKRLE8,
BI_CMYKRLE4
};
/* flags for use in <dwFlags> in AVIFileHdr */
#define AVIF_HASINDEX 0x00000010 /* Index at end of file? */
#define AVIF_MUSTUSEINDEX 0x00000020
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment