vhook/watermark.c:242: error: Integer Overflow L2
  ([0, +oo] - 1):unsigned32 by call to `get_watermark_picture`.

vhook/watermark.c:232:9: Call
230. // img_convert parameters are          2 first destination, then 4 source
231. // sws_scale   parameters are context, 4 first source,      then 2 destination
232.         sws_scale(ci->toRGB_convert_ctx,
             ^
233.                  picture->data, picture->linesize, 0, src_height,
234.                  picture1.data, picture1.linesize);

libavcodec/imgresample.c:599:1: Parameter `(*ctx->resampling_ctx->line_buf).*.strlen`
  597. }
  598. 
  599. int sws_scale(struct SwsContext *ctx, uint8_t* src[], int srcStride[],
       ^
  600.               int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[])
  601. {

vhook/watermark.c:242:13: Call
240. 
241.     // Get me next frame
242.     if (0 > get_watermark_picture(ci, 0)) {
                 ^
243.         return;
244.     }

vhook/watermark.c:454:1: Parameter `ci->pFormatCtx->nb_programs`
  452.  * 0 = ok, -1 = error
  453.  ****************************************************************************/
  454. int get_watermark_picture(ContextInfo *ci, int cleanup)
       ^
  455. {
  456.     if (1 == ci->is_done && 0 == cleanup) return 0;

vhook/watermark.c:645:13: Call
  643.         // Close the video file
  644.         if (0 != ci->pFormatCtx) {
  645.             av_close_input_file(ci->pFormatCtx);
                   ^
  646.             ci->pFormatCtx = 0;
  647.         }

libavformat/utils.c:2152:1: Parameter `s->nb_programs`
    2150. }
    2151. 
    2152. void av_close_input_file(AVFormatContext *s)
          ^
    2153. {
    2154.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;

libavformat/utils.c:2155:5: Call
    2153. {
    2154.     ByteIOContext *pb = s->iformat->flags & AVFMT_NOFILE ? NULL : s->pb;
    2155.     av_close_input_stream(s);
              ^
    2156.     if (pb)
    2157.         url_fclose(pb);

libavformat/utils.c:2118:1: <LHS trace>
2116. }
2117. 
2118. void av_close_input_stream(AVFormatContext *s)
      ^
2119. {
2120.     int i;

libavformat/utils.c:2118:1: Parameter `s->nb_programs`
      2116. }
      2117. 
      2118. void av_close_input_stream(AVFormatContext *s)
            ^
      2119. {
      2120.     int i;

libavformat/utils.c:2141:9: Binary operation: ([0, +oo] - 1):unsigned32 by call to `get_watermark_picture` 
      2139.         av_free(st);
      2140.     }
      2141.     for(i=s->nb_programs-1; i>=0; i--) {
                    ^
      2142.         av_freep(&s->programs[i]->provider_name);
      2143.         av_freep(&s->programs[i]->name);
