Skip to content
Snippets Groups Projects
Commit 0e6f4f95 authored by François Cartegnie's avatar François Cartegnie :fingers_crossed:
Browse files

demux: libavi: fix boundary setup

confusion: wanted min of max.
parent 4a67f8ce
No related branches found
No related tags found
No related merge requests found
......@@ -433,7 +433,7 @@ static int AVI_ChunkRead_strf( stream_t *s, avi_chunk_t *p_chk )
/* stay within VLC's limits */
p_chk->strf.vids.p_bih->biClrUsed =
__MAX( VIDEO_PALETTE_COLORS_MAX, p_chk->strf.vids.p_bih->biClrUsed );
__MIN( VIDEO_PALETTE_COLORS_MAX, p_chk->strf.vids.p_bih->biClrUsed );
}
else p_chk->strf.vids.p_bih->biClrUsed = 0;
#ifdef AVI_DEBUG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment