Mercurial > mplayer.hg
changeset 35421:301d578b9142
Always set BITMAPINFOHEADER field biPlanes to 1, the only allowed value.
This allows using more binary decoders with -demuxer lavf.
author | cehoyos |
---|---|
date | Thu, 29 Nov 2012 14:58:39 +0000 |
parents | 89edd725a587 |
children | 696a8a165952 |
files | libmpdemux/demux_lavf.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c Thu Nov 29 14:30:40 2012 +0000 +++ b/libmpdemux/demux_lavf.c Thu Nov 29 14:58:39 2012 +0000 @@ -375,6 +375,7 @@ bih->biSize= sizeof(*bih) + codec->extradata_size; bih->biWidth= codec->width; bih->biHeight= codec->height; + bih->biPlanes= 1; bih->biBitCount= codec->bits_per_coded_sample; bih->biSizeImage = bih->biWidth * bih->biHeight * bih->biBitCount/8; bih->biCompression= codec->codec_tag;