aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/gxfenc.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2010-10-07 19:41:04 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2010-10-07 19:41:04 +0000
commit8a451afe7d011c37548340d529e556010d8c1718 (patch)
tree538547a1269b9997c3b657105077afc299eeea53 /libavformat/gxfenc.c
parenta7ba165a0c42cab81dce61c4638c840860ef0d36 (diff)
downloadffmpeg-8a451afe7d011c37548340d529e556010d8c1718.tar.gz
In gxf muxer, round up number of lines mod 16 in mpeg umf data, based patch by Reuben Martin, reuben dot m at gmail dot com
Originally committed as revision 25401 to svn://svn.ffmpeg.org/ffmpeg/trunk
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 78e1a1cbdd..565a86580f 100644
--- a/libavformat/gxfenc.c
+++ b/libavformat/gxfenc.c
@@ -190,7 +190,7 @@ static int gxf_write_mpeg_auxiliary(ByteIOContext *pb, AVStream *st)
"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,
- starting_line, st->codec->height / 16);
+ starting_line, (st->codec->height + 15) / 16);
put_byte(pb, TRACK_MPG_AUX);
put_byte(pb, size + 1);
put_buffer(pb, (uint8_t *)buffer, size + 1);