Changeset 10b01ed4910dfd1e26e5989818f7d53bd839f9b0

Show
Ignore:
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
  • modules/packetizer/mpegvideo.c

    r85d9938 r10b01ed  
    33 ***************************************************************************** 
    44 * 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 $ 
    66 * 
    77 * Authors: Laurent Aimar <fenrir@via.ecp.fr> 
     
    511511        /* Trivial case (DTS == PTS) */ 
    512512        p_pack->i_interpolated_dts += i_duration; 
     513        p_sout_buffer->i_length = i_duration; 
    513514    } 
    514515    else 
    515516    { 
    516517        p_pack->i_interpolated_dts += p_pack->i_old_duration; 
     518        p_sout_buffer->i_length = p_pack->i_old_duration; 
    517519        p_pack->i_old_duration = i_duration; 
    518520    } 
    519521 
    520522    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 
    522528 
    523529    sout_InputSendBuffer( p_pack->p_sout_input, p_sout_buffer );