aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/gxfenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-09 14:31:06 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-09 14:31:06 +0200
commiteb336cb881b476288a9ee32bd397bd0a23ac74c2 (patch)
treecfad5af7dffa6036dbe5f2359360263ba185c1e4 /libavformat/gxfenc.c
parent7992814920d3a07a0bacfe45abd2183e81ef95f9 (diff)
downloadffmpeg-eb336cb881b476288a9ee32bd397bd0a23ac74c2.tar.gz
gxfenc: dont duplicate buffer size
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/gxfenc.c')
-rw-r--r--libavformat/gxfenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c
index 8d89e9e1f6..5d854c6926 100644
--- a/libavformat/gxfenc.c
+++ b/libavformat/gxfenc.c
@@ -205,7 +205,7 @@ static int gxf_write_mpeg_auxiliary(AVIOContext *pb, AVStream *st)
else
starting_line = 23; // default PAL
- size = snprintf(buffer, 1024, "Ver 1\nBr %.6f\nIpg 1\nPpi %d\nBpiop %d\n"
+ size = snprintf(buffer, sizeof(buffer), "Ver 1\nBr %.6f\nIpg 1\nPpi %d\nBpiop %d\n"
"Pix 0\nCf %d\nCg %d\nSl %d\nnl16 %d\nVi 1\nf1 1\n",
(float)st->codec->bit_rate, sc->p_per_gop, sc->b_per_i_or_p,
st->codec->pix_fmt == PIX_FMT_YUV422P ? 2 : 1, sc->first_gop_closed == 1,