projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20c1e3b
)
cog: Fix off-by-one in 444->420 conversion
author
David Schleef
<ds@schleef.org>
Wed, 17 Mar 2010 18:30:34 +0000
(11:30 -0700)
committer
David Schleef
<ds@schleef.org>
Wed, 17 Mar 2010 18:31:58 +0000
(11:31 -0700)
Fixes #613160.
ext/cog/cogvirtframe.c
patch
|
blob
|
history
diff --git
a/ext/cog/cogvirtframe.c
b/ext/cog/cogvirtframe.c
index 93f384932941ebd7bf99c68cda70fb00b0a8efc1..33367939eef30e367c525ac3a0a7e65fbdc9ff22 100644
(file)
--- a/
ext/cog/cogvirtframe.c
+++ b/
ext/cog/cogvirtframe.c
@@
-1627,7
+1627,7
@@
convert_444_420_mpeg2 (CogFrame * frame, void *_dest, int component, int i)
int j;
int x;
- for (j = 1; j < frame->components[component].width
- 1
; j++) {
+ for (j = 1; j < frame->components[component].width; j++) {
x = 1 * src1[j * 2 - 1];
x += 2 * src1[j * 2 + 0];
x += 1 * src1[j * 2 + 1];