Commit cc93f625 authored by Laurent Aimar's avatar Laurent Aimar

* display.c: fixed decoding problem with mpeg1/2. (input_NewPacket doesn't

set p_payload_end to the good value -> some packets are bigger than
requested).
parent 36449bd0
......@@ -2,7 +2,7 @@
* display.c
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: display.c,v 1.1 2003/04/13 20:00:21 fenrir Exp $
* $Id: display.c,v 1.2 2003/04/14 02:26:49 fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
......@@ -254,6 +254,8 @@ static int Send ( sout_stream_t *p_stream, sout_stream_id_t *id, sout_bu
msg_Err( p_stream, "cannot allocate new data_packet" );
return VLC_EGENERIC;
}
p_data->p_payload_end = p_data->p_payload_start + p_buffer->i_size;
p_pes->i_dts = p_buffer->i_dts + p_sys->i_delay;
p_pes->i_pts = p_buffer->i_pts + p_sys->i_delay;
p_pes->p_first = p_pes->p_last = p_data;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment