projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4d6d31
)
Restore comment that was partially removed.
author
Ramiro Polla
<ramiro.polla@gmail.com>
Sat, 29 Aug 2009 02:44:03 +0000
(
02:44
+0000)
committer
Ramiro Polla
<ramiro.polla@gmail.com>
Sat, 29 Aug 2009 02:44:03 +0000
(
02:44
+0000)
Originally committed as revision 29582 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
2f5d5f1
..
9266eff
100644
(file)
--- a/
libswscale/swscale.c
+++ b/
libswscale/swscale.c
@@
-2908,6
+2908,7
@@
SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat, int d
}
// allocate pixbufs (we use dynamic allocation because otherwise we would need to
+ // allocate several megabytes to handle all possible cases)
c->lumPixBuf= av_malloc(c->vLumBufSize*2*sizeof(int16_t*));
c->chrPixBuf= av_malloc(c->vChrBufSize*2*sizeof(int16_t*));
if (CONFIG_SWSCALE_ALPHA && isALPHA(c->srcFormat) && isALPHA(c->dstFormat))