OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53b0446
)
100l in avpicture_layout: width of chroma planes depends on format depth, too.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 11 Oct 2009 07:05:26 +0000
(07:05 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 11 Oct 2009 07:05:26 +0000
(07:05 +0000)
Fixes issue 1465
Originally committed as revision 20202 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/imgconvert.c
patch
|
blob
|
history
diff --git
a/libavcodec/imgconvert.c
b/libavcodec/imgconvert.c
index
4698fcf
..
9826a6a
100644
(file)
--- a/
libavcodec/imgconvert.c
+++ b/
libavcodec/imgconvert.c
@@
-897,7
+897,7
@@
int avpicture_layout(const AVPicture* src, enum PixelFormat pix_fmt, int width,
for (i=0; i<data_planes; i++) {
if (i == 1) {
- w =
width >> pf->x_chroma_shift
;
+ w =
((width >> pf->x_chroma_shift) * pf->depth + 7) / 8
;
h = height >> pf->y_chroma_shift;
} else if (i == 3) {
w = ow;