diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-19 19:01:37 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-19 19:02:52 +0400 |
commit | 32a92d325893f15c8f3cbe8dfd4bc6075178039b (patch) | |
tree | 67f2d0509507f3b74c0a9edbd0e665a0d76827ed /libswscale | |
parent | 90cad5edf64511721421a8ffa2b0e3024e3e68c0 (diff) |
sws: Print an error in case of av_malloc() failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index 294dd1a458..3adf03a6e9 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -948,7 +948,10 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) #else if (!c->lumMmx2FilterCode || !c->chrMmx2FilterCode) #endif + { + av_log(c, AV_LOG_ERROR, "Failed to allocate MMX2FilterCode\n"); return AVERROR(ENOMEM); + } FF_ALLOCZ_OR_GOTO(c, c->hLumFilter , (dstW /8+8)*sizeof(int16_t), fail); FF_ALLOCZ_OR_GOTO(c, c->hChrFilter , (c->chrDstW /4+8)*sizeof(int16_t), fail); FF_ALLOCZ_OR_GOTO(c, c->hLumFilterPos, (dstW /2/8+8)*sizeof(int32_t), fail); |