~siretart/x264/trunk

« back to all changes in this revision

Viewing changes to encoder/encoder.c

  • Committer: Anton Mitrofanov
  • Author(s): Vittorio Giovara
  • Date: 2017-12-24 20:47:24 UTC
  • Revision ID: git-v1:95cdb743463f723cea58c8ae01d7762f7ae9965c
Support writing the alternative transfer SEI message

Show diffs side-by-side

added added

removed removed

Lines of Context:
3636
3636
        overhead += h->out.nal[h->out.i_nal-1].i_payload + SEI_OVERHEAD;
3637
3637
    }
3638
3638
 
 
3639
    if( h->param.i_alternative_transfer != 2 )
 
3640
    {
 
3641
        nal_start( h, NAL_SEI, NAL_PRIORITY_DISPOSABLE );
 
3642
        x264_sei_alternative_transfer_write( h, &h->out.bs );
 
3643
        if( nal_end( h ) )
 
3644
            return -1;
 
3645
        overhead += h->out.nal[h->out.i_nal-1].i_payload + SEI_OVERHEAD;
 
3646
    }
 
3647
 
3639
3648
    /* generate sei pic timing */
3640
3649
    if( h->sps->vui.b_pic_struct_present || h->sps->vui.b_nal_hrd_parameters_present )
3641
3650
    {