mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 02:20:07 +01:00
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>
This commit is contained in:
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user