OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
519ebb5
)
buffersrc: fix w/h error
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 18 Mar 2013 01:00:57 +0000
(
02:00
+0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 18 Mar 2013 01:00:57 +0000
(
02:00
+0100)
Found-by: nevcairiel
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/buffersrc.c
patch
|
blob
|
history
diff --git
a/libavfilter/buffersrc.c
b/libavfilter/buffersrc.c
index
a630015
..
1d4501a
100644
(file)
--- a/
libavfilter/buffersrc.c
+++ b/
libavfilter/buffersrc.c
@@
-241,7
+241,7
@@
do { \
planes = (desc->flags & PIX_FMT_PLANAR) ? desc->nb_components : 1;
for (i = 0; i < planes; i++) {
- int v_shift = (i == 1 || i == 2) ? desc->log2_chroma_
w
: 0;
+ int v_shift = (i == 1 || i == 2) ? desc->log2_chroma_
h
: 0;
int plane_size = (frame->height >> v_shift) * frame->linesize[i];
WRAP_PLANE(frame->buf[i], frame->data[i], plane_size);