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

ffmpeg.c:857:1: Parameter `in_picture->data[*]`
855. static uint8_t *bit_buffer= NULL;
856. 
857. static void do_video_out(AVFormatContext *s,
     ^
858.                          AVOutputStream *ost,
859.                          AVInputStream *ist,

ffmpeg.c:983:9: Call
981.             }
982.         }
983.         sws_scale(ost->img_resample_ctx, formatted_picture->data, formatted_picture->linesize,
             ^
984.               0, ost->resample_height, resampling_dst->data, resampling_dst->linesize);
985.     }

libswscale/swscale.c:3135:14: <Offset trace>
3133. 
3134.     if (usePal(c->srcFormat)){
3135.         for (i=0; i<256; i++){
                   ^
3136.             int p, r, g, b,y,u,v;
3137.             if(c->srcFormat == PIX_FMT_PAL8){

libswscale/swscale.c:3135:14: Assignment
  3133. 
  3134.     if (usePal(c->srcFormat)){
  3135.         for (i=0; i<256; i++){
                     ^
  3136.             int p, r, g, b,y,u,v;
  3137.             if(c->srcFormat == PIX_FMT_PAL8){

libswscale/swscale.c:3120:1: <Length trace>
3118.  * Assumes planar YUV to be in YUV order instead of YVU.
3119.  */
3120. int sws_scale(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
      ^
3121.               int srcSliceH, uint8_t* dst[], int dstStride[]){
3122.     int i;

libswscale/swscale.c:3120:1: Parameter `**src`
  3118.  * Assumes planar YUV to be in YUV order instead of YVU.
  3119.  */
  3120. int sws_scale(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
        ^
  3121.               int srcSliceH, uint8_t* dst[], int dstStride[]){
  3122.     int i;

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