Commit 0e6f4f95 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: libavi: fix boundary setup

confusion: wanted min of max.
parent 4a67f8ce
...@@ -433,7 +433,7 @@ static int AVI_ChunkRead_strf( stream_t *s, avi_chunk_t *p_chk ) ...@@ -433,7 +433,7 @@ static int AVI_ChunkRead_strf( stream_t *s, avi_chunk_t *p_chk )
/* stay within VLC's limits */ /* stay within VLC's limits */
p_chk->strf.vids.p_bih->biClrUsed = 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; else p_chk->strf.vids.p_bih->biClrUsed = 0;
#ifdef AVI_DEBUG #ifdef AVI_DEBUG
......
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