Changeset 20ef751349165a5edf4da20f2e172cd52802cb02
- Timestamp:
- 30/08/06 01:02:13
(2 years ago)
- Author:
- Derk-Jan Hartman <hartman@videolan.org>
- git-committer:
- Derk-Jan Hartman <hartman@videolan.org> 1156892533 +0000
- git-parent:
[5cd642814a0249537ea7d4ce99cfc7f5a5a26426]
- git-author:
- Derk-Jan Hartman <hartman@videolan.org> 1156892533 +0000
- Message:
* copy [16427] to the switcher module as well. ( is times 3 bytes enough ? perhaps i should use 4 bytes per pixel ? )
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r4448a18 |
r20ef751 |
|
| 52 | 52 | #define MAX_PICTURES 10 |
|---|
| 53 | 53 | #define MAX_AUDIO 30 |
|---|
| 54 | | #define AVCODEC_MAX_VIDEO_FRAME_SIZE (3*1024*1024) |
|---|
| 55 | 54 | #define MAX_THRESHOLD 99999999 |
|---|
| 56 | 55 | |
|---|
| … | … | |
| 780 | 779 | } |
|---|
| 781 | 780 | |
|---|
| 782 | | id->p_buffer_out = malloc( AVCODEC_MAX_VIDEO_FRAME_SIZE ); |
|---|
| | 781 | id->p_buffer_out = malloc( id->ff_enc_c->width * id->ff_enc_c->height * 3 ); |
|---|
| 783 | 782 | id->p_frame = avcodec_alloc_frame(); |
|---|
| 784 | 783 | id->p_frame->linesize[0] = p_sys->p_pictures[p_sys->i_cmd-1].p[0].i_pitch; |
|---|
| … | … | |
| 834 | 833 | |
|---|
| 835 | 834 | i_out = avcodec_encode_video( id->ff_enc_c, id->p_buffer_out, |
|---|
| 836 | | AVCODEC_MAX_VIDEO_FRAME_SIZE, |
|---|
| | 835 | id->ff_enc_c->width * id->ff_enc_c->height * 3, |
|---|
| 837 | 836 | id->p_frame ); |
|---|
| 838 | 837 | |
|---|