Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int attribute_align_arg sws_scale(struct SwsContext *c,
- const uint8_t * const srcSlice[],
- const int srcStride[], int srcSliceY,
- int srcSliceH, uint8_t *const dst[],
- const int dstStride[])
- {
- int i, ret;
- const uint8_t *src2[4];
- uint8_t *dst2[4];
- uint8_t *rgb0_tmp = NULL;
- if (!srcSlice || !dstStride || !dst || !srcSlice) {
- av_log(c, AV_LOG_ERROR,
- "One of the input parameters to sws_scale() is NULL, "
- "please check the calling code\n");
- return 0;
- }
- ....
- }
- This suspicious code was found in FFMpeg project by PVS-Studio static code analyzer.
- Warning message is:
- V501 There are identical sub-expressions '!srcSlice' to the left and to the right of the '||' operator. swscale.c 924
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement