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

ffmpeg.c:879:1: Parameter `in_picture->data[*]`
877. static uint8_t *bit_buffer= NULL;
878. 
879. static void do_video_out(AVFormatContext *s,
     ^
880.                          AVOutputStream *ost,
881.                          AVInputStream *ist,

ffmpeg.c:1013:9: Call
1011.             }
1012.         }
1013.         sws_scale(ost->img_resample_ctx, formatted_picture->data, formatted_picture->linesize,
              ^
1014.               0, ost->resample_height, resampling_dst->data, resampling_dst->linesize);
1015.     }

libswscale/swscale.c:2972:14: <Offset trace>
2970. 
2971.     if (usePal(c->srcFormat)) {
2972.         for (i=0; i<256; i++) {
                   ^
2973.             int p, r, g, b,y,u,v;
2974.             if(c->srcFormat == PIX_FMT_PAL8) {

libswscale/swscale.c:2972:14: Assignment
  2970. 
  2971.     if (usePal(c->srcFormat)) {
  2972.         for (i=0; i<256; i++) {
                     ^
  2973.             int p, r, g, b,y,u,v;
  2974.             if(c->srcFormat == PIX_FMT_PAL8) {

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

libswscale/swscale.c:2952:1: Parameter `**src`
  2950.  * Assumes planar YUV to be in YUV order instead of YVU.
  2951.  */
  2952. int sws_scale(SwsContext *c, const uint8_t* src[], int srcStride[], int srcSliceY,
        ^
  2953.               int srcSliceH, uint8_t* dst[], int dstStride[])
  2954. {

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