Changeset 02d6bac4129293e33ae12057fd6e418f20d7d771
- Timestamp:
- 27/01/04 15:05:33
(5 years ago)
- Author:
- Gildas Bazin <gbazin@videolan.org>
- git-committer:
- Gildas Bazin <gbazin@videolan.org> 1075212333 +0000
- git-parent:
[a3aa98472a38b2767b85279d975fd4df97331924]
- git-author:
- Gildas Bazin <gbazin@videolan.org> 1075212333 +0000
- Message:
* modules/packetizer/mpegvideo.c: fixed major bug where the first frame could be sent out with a null dts.
* src/stream_output/stream_output.c: guard against non-dated packets in sout_InputSendBuffer().
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rf7fd8b6 |
r02d6bac |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2001, 2002 VideoLAN |
|---|
| 5 | | * $Id: mpegvideo.c,v 1.27 2004/01/25 17:58:30 murray Exp $ |
|---|
| | 5 | * $Id: mpegvideo.c,v 1.28 2004/01/27 14:05:33 gbazin Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Laurent Aimar <fenrir@via.ecp.fr> |
|---|
| … | … | |
| 295 | 295 | } |
|---|
| 296 | 296 | |
|---|
| | 297 | /* When starting the stream we can have the first frame with |
|---|
| | 298 | * a null DTS (i_interpolated_pts is initialized to 0) */ |
|---|
| | 299 | if( !p_pic->i_dts ) p_pic->i_dts = p_pic->i_pts; |
|---|
| | 300 | |
|---|
| 297 | 301 | /* So p_block doesn't get re-added several times */ |
|---|
| 298 | 302 | *pp_block = block_BytestreamPop( &p_sys->bytestream ); |
|---|
| r5c2cf08 |
r02d6bac |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2002-2004 VideoLAN |
|---|
| 5 | | * $Id: stream_output.c,v 1.38 2004/01/23 17:56:14 gbazin Exp $ |
|---|
| | 5 | * $Id: stream_output.c,v 1.39 2004/01/27 14:05:33 gbazin Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Christophe Massiot <massiot@via.ecp.fr> |
|---|
| … | … | |
| 238 | 238 | } |
|---|
| 239 | 239 | |
|---|
| 240 | | |
|---|
| 241 | 240 | int sout_InputSendBuffer( sout_packetizer_input_t *p_input, |
|---|
| 242 | 241 | sout_buffer_t *p_buffer ) |
|---|
| … | … | |
| 251 | 250 | } |
|---|
| 252 | 251 | |
|---|
| | 252 | if( !p_buffer->i_dts ) |
|---|
| | 253 | { |
|---|
| | 254 | msg_Warn( p_sout, "trying to send non-dated packet to stream output!"); |
|---|
| | 255 | sout_BufferDelete( p_input->p_sout, p_buffer ); |
|---|
| | 256 | return VLC_SUCCESS; |
|---|
| | 257 | } |
|---|
| | 258 | |
|---|
| 253 | 259 | vlc_mutex_lock( &p_sout->lock ); |
|---|
| 254 | | i_ret = p_sout->p_stream->pf_send( p_sout->p_stream, p_input->id, p_buffer ); |
|---|
| | 260 | i_ret = p_sout->p_stream->pf_send( p_sout->p_stream, |
|---|
| | 261 | p_input->id, p_buffer ); |
|---|
| 255 | 262 | vlc_mutex_unlock( &p_sout->lock ); |
|---|
| 256 | 263 | |
|---|