Changeset 10b01ed4910dfd1e26e5989818f7d53bd839f9b0
- Timestamp:
- 11/08/03 00:13:05
(5 years ago)
- Author:
- Laurent Aimar <fenrir@videolan.org>
- git-committer:
- Laurent Aimar <fenrir@videolan.org> 1060553585 +0000
- git-parent:
[ae141f9a5e91ac456796b43e70cac62783eefe20]
- git-author:
- Laurent Aimar <fenrir@videolan.org> 1060553585 +0000
- Message:
- mpegvideo.c: try to set a better value for length. (I am not sure it is
the good one but it give far better result). dts/pts/length computation
should be verified.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r85d9938 |
r10b01ed |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001, 2002 VideoLAN |
|---|
| 5 | | * $Id: mpegvideo.c,v 1.15 2003/06/10 22:42:59 gbazin Exp $ |
|---|
| | 5 | * $Id: mpegvideo.c,v 1.16 2003/08/10 22:13:05 fenrir Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Laurent Aimar <fenrir@via.ecp.fr> |
|---|
| … | … | |
| 511 | 511 | /* Trivial case (DTS == PTS) */ |
|---|
| 512 | 512 | p_pack->i_interpolated_dts += i_duration; |
|---|
| | 513 | p_sout_buffer->i_length = i_duration; |
|---|
| 513 | 514 | } |
|---|
| 514 | 515 | else |
|---|
| 515 | 516 | { |
|---|
| 516 | 517 | p_pack->i_interpolated_dts += p_pack->i_old_duration; |
|---|
| | 518 | p_sout_buffer->i_length = p_pack->i_old_duration; |
|---|
| 517 | 519 | p_pack->i_old_duration = i_duration; |
|---|
| 518 | 520 | } |
|---|
| 519 | 521 | |
|---|
| 520 | 522 | p_sout_buffer->i_bitrate = (int)( 8 * i_pos * p_pack->d_frame_rate ); |
|---|
| 521 | | p_sout_buffer->i_length = i_duration; |
|---|
| | 523 | #if 0 |
|---|
| | 524 | msg_Dbg( p_pack->p_fifo, "------------> dts=%lld pts=%lld duration=%lld", |
|---|
| | 525 | p_sout_buffer->i_dts, p_sout_buffer->i_pts, |
|---|
| | 526 | p_sout_buffer->i_length ); |
|---|
| | 527 | #endif |
|---|
| 522 | 528 | |
|---|
| 523 | 529 | sout_InputSendBuffer( p_pack->p_sout_input, p_sout_buffer ); |
|---|