diff options
author | Wolfram Gloger <wmglo@dent.med.uni-muenchen.de> | 2004-10-25 01:16:13 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-10-25 01:16:13 +0000 |
commit | ed2cea42900c24d9ca74e6cbe8d9cce4b6362d1d (patch) | |
tree | 3654b77dccc6f30ebe04050cc3908ca80c308bf3 /libavcodec/imgconvert.c | |
parent | 146210caf9cf95a35f660199ba5b0aa850fc18d7 (diff) | |
download | ffmpeg-streaming-ed2cea42900c24d9ca74e6cbe8d9cce4b6362d1d.zip ffmpeg-streaming-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/imgconvert.c')
-rw-r--r-- | libavcodec/imgconvert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 040b2c7..0e763ab 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; } |