changeset 2320:760e8105e766 libavcodec

fix -pixfmt mono[bw] patch by (Wolfram Gloger <wmglo at dent dot med dot uni-muenchen dot de>)
author michael
date Mon, 25 Oct 2004 01:16:13 +0000
parents f9f257b41ec2
children a9f79085b01d
files imgconvert.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/imgconvert.c	Sun Oct 24 22:37:29 2004 +0000
+++ b/imgconvert.c	Mon Oct 25 01:16:13 2004 +0000
@@ -380,7 +380,7 @@
 	h = height;
     } else {
         data_planes = pf->nb_channels;
-	w = width;
+	w = (width*pf->depth + 7)/8;
 	h = height;
     }