[FFmpeg-cvslog] r25401 - trunk/libavformat/gxfenc.c

bcoudurier subversion
Thu Oct 7 21:41:04 CEST 2010


Author: bcoudurier
Date: Thu Oct  7 21:41:04 2010
New Revision: 25401

Log:
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

Modified:
   trunk/libavformat/gxfenc.c

Modified: trunk/libavformat/gxfenc.c
==============================================================================
--- trunk/libavformat/gxfenc.c	Thu Oct  7 21:37:37 2010	(r25400)
+++ trunk/libavformat/gxfenc.c	Thu Oct  7 21:41:04 2010	(r25401)
@@ -190,7 +190,7 @@ static int gxf_write_mpeg_auxiliary(Byte
                     "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);



More information about the ffmpeg-cvslog mailing list