Commit 8a451afe authored by Baptiste Coudurier's avatar Baptiste Coudurier

In gxf muxer, round up number of lines mod 16 in mpeg umf data, based patch by...

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
parent a7ba165a
...@@ -190,7 +190,7 @@ static int gxf_write_mpeg_auxiliary(ByteIOContext *pb, AVStream *st) ...@@ -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", "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, (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, 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, TRACK_MPG_AUX);
put_byte(pb, size + 1); put_byte(pb, size + 1);
put_buffer(pb, (uint8_t *)buffer, size + 1); put_buffer(pb, (uint8_t *)buffer, size + 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment