ffmpeg.c:1020: error: Buffer Overrun L2
  Offset: [0, 255] Size: 8 by call to `sws_scale`.

ffmpeg.c:886:1: Parameter `in_picture->data[*]`
884. static uint8_t *bit_buffer= NULL;
885. 
886. static void do_video_out(AVFormatContext *s,
     ^
887.                          AVOutputStream *ost,
888.                          AVInputStream *ist,

ffmpeg.c:1020:9: Call
1018.             }
1019.         }
1020.         sws_scale(ost->img_resample_ctx, formatted_picture->data, formatted_picture->linesize,
              ^
1021.               0, ost->resample_height, resampling_dst->data, resampling_dst->linesize);
1022.     }

libswscale/swscale.c:1810:14: <Offset trace>
1808. 
1809.     if (usePal(c->srcFormat)) {
1810.         for (i=0; i<256; i++) {
                   ^
1811.             int p, r, g, b,y,u,v;
1812.             if(c->srcFormat == PIX_FMT_PAL8) {

libswscale/swscale.c:1810:14: Assignment
  1808. 
  1809.     if (usePal(c->srcFormat)) {
  1810.         for (i=0; i<256; i++) {
                     ^
  1811.             int p, r, g, b,y,u,v;
  1812.             if(c->srcFormat == PIX_FMT_PAL8) {

libswscale/swscale.c:1790:1: <Length trace>
1788.  * Assumes planar YUV to be in YUV order instead of YVU.
1789.  */
1790. int sws_scale(SwsContext *c, const uint8_t* const src[], const int srcStride[], int srcSliceY,
      ^
1791.               int srcSliceH, uint8_t* const dst[], const int dstStride[])
1792. {

libswscale/swscale.c:1790:1: Parameter `**src`
  1788.  * Assumes planar YUV to be in YUV order instead of YVU.
  1789.  */
  1790. int sws_scale(SwsContext *c, const uint8_t* const src[], const int srcStride[], int srcSliceY,
        ^
  1791.               int srcSliceH, uint8_t* const dst[], const int dstStride[])
  1792. {

libswscale/swscale.c:1813:19: Array access: Offset: [0, 255] Size: 8 by call to `sws_scale` 
  1811.             int p, r, g, b,y,u,v;
  1812.             if(c->srcFormat == PIX_FMT_PAL8) {
  1813.                 p=((const uint32_t*)(src[1]))[i];
                          ^
  1814.                 r= (p>>16)&0xFF;
  1815.                 g= (p>> 8)&0xFF;
