aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorWolfram Gloger <wmglo@dent.med.uni-muenchen.de>2004-10-25 01:16:13 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-10-25 01:16:13 +0000
commited2cea42900c24d9ca74e6cbe8d9cce4b6362d1d (patch)
tree3654b77dccc6f30ebe04050cc3908ca80c308bf3 /libavcodec
parent146210caf9cf95a35f660199ba5b0aa850fc18d7 (diff)
downloadffmpeg-ed2cea42900c24d9ca74e6cbe8d9cce4b6362d1d.tar.gz
fix -pixfmt mono[bw] patch by (Wolfram Gloger <wmglo at dent dot med dot uni-muenchen dot de>)
Originally committed as revision 3636 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/imgconvert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 040b2c7939..0e763abf9e 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -380,7 +380,7 @@ int avpicture_layout(const AVPicture* src, int pix_fmt, int width, int height,
h = height;
} else {
data_planes = pf->nb_channels;
- w = width;
+ w = (width*pf->depth + 7)/8;
h = height;
}