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

libavformat/gxfenc.c:195:12: <LHS trace>
193.         starting_line = 23; // default PAL
194. 
195.     size = snprintf(buffer, 1024, "Ver 1\nBr %.6f\nIpg 1\nPpi %d\nBpiop %d\n"
                ^
196.                     "Pix 0\nCf %d\nCg %d\nSl %d\nnl16 %d\nVi 1\nf1 1\n",
197.                     (float)ctx->codec->bit_rate, ctx->p_per_gop, ctx->b_per_i_or_p,

libavformat/gxfenc.c:195:12: Risky value from: snprintf
193.         starting_line = 23; // default PAL
194. 
195.     size = snprintf(buffer, 1024, "Ver 1\nBr %.6f\nIpg 1\nPpi %d\nBpiop %d\n"
                ^
196.                     "Pix 0\nCf %d\nCg %d\nSl %d\nnl16 %d\nVi 1\nf1 1\n",
197.                     (float)ctx->codec->bit_rate, ctx->p_per_gop, ctx->b_per_i_or_p,

libavformat/gxfenc.c:195:5: Assignment
193.         starting_line = 23; // default PAL
194. 
195.     size = snprintf(buffer, 1024, "Ver 1\nBr %.6f\nIpg 1\nPpi %d\nBpiop %d\n"
         ^
196.                     "Pix 0\nCf %d\nCg %d\nSl %d\nnl16 %d\nVi 1\nf1 1\n",
197.                     (float)ctx->codec->bit_rate, ctx->p_per_gop, ctx->b_per_i_or_p,

libavformat/gxfenc.c:201:5: Binary operation: ([0, +oo] + 1):signed32
199.                     starting_line, ctx->codec->height / 16);
200.     put_byte(pb, TRACK_MPG_AUX);
201.     put_byte(pb, size + 1);
         ^
202.     put_buffer(pb, (uint8_t *)buffer, size + 1);
203.     return size + 3;
