Commit 5aadb8d7 authored by Christophe Massiot's avatar Christophe Massiot

Fix in the SCR parser for high values.

parent 7107b37d
...@@ -738,7 +738,7 @@ void input_DemuxPS( input_thread_t * p_input, data_packet_t * p_data ) ...@@ -738,7 +738,7 @@ void input_DemuxPS( input_thread_t * p_input, data_packet_t * p_data )
/* MPEG-2 */ /* MPEG-2 */
scr_time = scr_time =
(( ((mtime_t)(p_data->p_buffer[4] & 0x38) << 27) | (( ((mtime_t)(p_data->p_buffer[4] & 0x38) << 27) |
((mtime_t)(p_data->p_buffer[4] & 0x3) << 26) | ((mtime_t)(p_data->p_buffer[4] & 0x3) << 28) |
((mtime_t)(p_data->p_buffer[5]) << 20) | ((mtime_t)(p_data->p_buffer[5]) << 20) |
((mtime_t)(p_data->p_buffer[6] & 0xF8) << 12) | ((mtime_t)(p_data->p_buffer[6] & 0xF8) << 12) |
((mtime_t)(p_data->p_buffer[6] & 0x3) << 13) | ((mtime_t)(p_data->p_buffer[6] & 0x3) << 13) |
......
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