libavformat/gxfenc.c:193: error: Integer Overflow R2
  ([0, +oo] + 3):signed32.

libavformat/gxfenc.c:185:12: <LHS trace>
183.             ctx->b_per_gop = 9; /* ensure value won't take more than one char */
184.     }
185.     size = snprintf(buffer, 1024, "Ver 1\nBr %.6f\nIpg 1\nPpi %d\nBpiop %d\n"
                ^
186.                     "Pix 0\nCf %d\nCg %d\nSl 7\nnl16 %d\nVi 1\nf1 1\n",
187.                     (float)ctx->codec->bit_rate, ctx->p_per_gop, ctx->b_per_gop,

libavformat/gxfenc.c:185:12: Risky value from: snprintf
183.             ctx->b_per_gop = 9; /* ensure value won't take more than one char */
184.     }
185.     size = snprintf(buffer, 1024, "Ver 1\nBr %.6f\nIpg 1\nPpi %d\nBpiop %d\n"
                ^
186.                     "Pix 0\nCf %d\nCg %d\nSl 7\nnl16 %d\nVi 1\nf1 1\n",
187.                     (float)ctx->codec->bit_rate, ctx->p_per_gop, ctx->b_per_gop,

libavformat/gxfenc.c:185:5: Assignment
183.             ctx->b_per_gop = 9; /* ensure value won't take more than one char */
184.     }
185.     size = snprintf(buffer, 1024, "Ver 1\nBr %.6f\nIpg 1\nPpi %d\nBpiop %d\n"
         ^
186.                     "Pix 0\nCf %d\nCg %d\nSl 7\nnl16 %d\nVi 1\nf1 1\n",
187.                     (float)ctx->codec->bit_rate, ctx->p_per_gop, ctx->b_per_gop,

libavformat/gxfenc.c:193:5: Binary operation: ([0, +oo] + 3):signed32
191.     put_byte(pb, size + 1);
192.     put_buffer(pb, (uint8_t *)buffer, size + 1);
193.     return size + 3;
         ^
194. }
195. 
