mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
Merge commit 'e51f22122d23589e93ac4f0b3e570bb925755915'
* commit 'e51f22122d23589e93ac4f0b3e570bb925755915': swscale: Check memory allocations Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
2a1b79d7e6
@ -1591,6 +1591,15 @@ SwsFilter *sws_getDefaultFilter(float lumaGBlur, float chromaGBlur,
|
||||
filter->chrV = sws_getIdentityVec();
|
||||
}
|
||||
|
||||
if (!filter->lumH || !filter->lumV || !filter->chrH || !filter->chrV) {
|
||||
sws_freeVec(filter->lumH);
|
||||
sws_freeVec(filter->lumV);
|
||||
sws_freeVec(filter->chrH);
|
||||
sws_freeVec(filter->chrV);
|
||||
av_freep(&filter);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (chromaSharpen != 0.0) {
|
||||
SwsVector *id = sws_getIdentityVec();
|
||||
sws_scaleVec(filter->chrH, -chromaSharpen);
|
||||
|
Loading…
Reference in New Issue
Block a user