OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3dc6c5
)
Use generic BE check instead of checking for gray16LE.
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 20 Apr 2009 21:05:32 +0000
(21:05 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 20 Apr 2009 21:05:32 +0000
(21:05 +0000)
Originally committed as revision 29213 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
libswscale/swscale.c
patch
|
blob
|
history
diff --git
a/libswscale/swscale.c
b/libswscale/swscale.c
index
b563784
..
ff35e33
100644
(file)
--- a/
libswscale/swscale.c
+++ b/
libswscale/swscale.c
@@
-2174,7
+2174,7
@@
static int gray16togray(SwsContext *c, uint8_t* src[], int srcStride[], int srcS
memset(dst[1], 128, dstStride[1]*height);
memset(dst[2], 128, dstStride[2]*height);
}
- if (
c->srcFormat == PIX_FMT_GRAY16LE
) srcPtr++;
+ if (
!isBE(c->srcFormat)
) srcPtr++;
for (i=0; i<height; i++)
{
for (j=0; j<length; j++) dstPtr[j] = srcPtr[j<<1];