diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-12 14:39:28 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-12 14:47:37 +0200 |
commit | ae0148ff60cbf0e1d81f86f7300280bb48056c71 (patch) | |
tree | 4475a163fd8618af23fb2df92d05d1a11f302beb /libswscale/utils.c | |
parent | 3dea13e710ce525375c5458fe16d6df80bd02517 (diff) | |
download | ffmpeg-ae0148ff60cbf0e1d81f86f7300280bb48056c71.tar.gz |
swscale: Assert that pixel format descriptor is not NULL
This may help static analyzers, the pixel format is checked
during initialization
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r-- | libswscale/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index f9f4ec6cb7..0c78d7515b 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1036,6 +1036,7 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, return AVERROR(EINVAL); } } + av_assert2(desc_src && desc_dst); i = flags & (SWS_POINT | SWS_AREA | |