Changeset 075cf0a0ab0dd962ad551efcbe6933aec601baac
- 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
| r2f322e1 |
r075cf0a |
|
| 757 | 757 | |
|---|
| 758 | 758 | id->ff_enc_c->mb_decision = FF_MB_DECISION_SIMPLE; |
|---|
| | 759 | id->ff_enc_c->pix_fmt = PIX_FMT_YUV420P; |
|---|
| 759 | 760 | |
|---|
| 760 | 761 | if( avcodec_open( id->ff_enc_c, id->ff_enc ) ) |
|---|
| … | … | |
| 878 | 879 | p_out->i_pts = p_buffer->i_dts; |
|---|
| 879 | 880 | p_out->i_dts = p_buffer->i_dts; |
|---|
| | 881 | p_out->i_rate = p_buffer->i_rate; |
|---|
| 880 | 882 | |
|---|
| 881 | 883 | switch ( id->ff_enc_c->coded_frame->pict_type ) |
|---|
| … | … | |
| 920 | 922 | p_out->i_pts = p_buffer->i_dts; |
|---|
| 921 | 923 | p_out->i_dts = p_buffer->i_dts; |
|---|
| | 924 | p_out->i_rate = p_buffer->i_rate; |
|---|
| 922 | 925 | |
|---|
| 923 | 926 | block_Release( p_buffer ); |
|---|