Changeset 075cf0a0ab0dd962ad551efcbe6933aec601baac

Show
Ignore:
Timestamp:
31/05/05 17:19:33 (4 years ago)
Author:
Christophe Massiot <massiot@videolan.org>
git-committer:
Christophe Massiot <massiot@videolan.org> 1117552773 +0000
git-parent:

[44481f3118d87cf757a14ec9455201d01d35a791]

git-author:
Christophe Massiot <massiot@videolan.org> 1117552773 +0000
Message:
  • modules/stream_out/switcher.c: Explicitly set the pixel format (this is
    due to a recent change of the default value in ffmpeg which used to be
    YUV 420P). Forward i_rate in case a transcode or display operation
    takes place after switcher.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/stream_out/switcher.c

    r2f322e1 r075cf0a  
    757757 
    758758        id->ff_enc_c->mb_decision = FF_MB_DECISION_SIMPLE; 
     759        id->ff_enc_c->pix_fmt = PIX_FMT_YUV420P; 
    759760 
    760761        if( avcodec_open( id->ff_enc_c, id->ff_enc ) ) 
     
    878879    p_out->i_pts = p_buffer->i_dts; 
    879880    p_out->i_dts = p_buffer->i_dts; 
     881    p_out->i_rate = p_buffer->i_rate; 
    880882 
    881883    switch ( id->ff_enc_c->coded_frame->pict_type ) 
     
    920922    p_out->i_pts = p_buffer->i_dts; 
    921923    p_out->i_dts = p_buffer->i_dts; 
     924    p_out->i_rate = p_buffer->i_rate; 
    922925 
    923926    block_Release( p_buffer );