20 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
21 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 |
* |
* |
23 |
* $Id: bitstream.c,v 1.57 2007-04-16 19:01:28 Skal Exp $ |
* $Id: bitstream.c,v 1.59 2010-08-10 15:00:06 Isibaar Exp $ |
24 |
* |
* |
25 |
****************************************************************************/ |
****************************************************************************/ |
26 |
|
|
820 |
dec->time = (dec->last_time_base + time_incr)*dec->time_inc_resolution + time_increment; |
dec->time = (dec->last_time_base + time_incr)*dec->time_inc_resolution + time_increment; |
821 |
dec->time_bp = dec->time_pp - (int32_t)(dec->last_non_b_time - dec->time); |
dec->time_bp = dec->time_pp - (int32_t)(dec->last_non_b_time - dec->time); |
822 |
} |
} |
823 |
|
if (dec->time_pp <= 0) dec->time_pp = 1; |
824 |
DPRINTF(XVID_DEBUG_HEADER,"time_pp=%i\n", dec->time_pp); |
DPRINTF(XVID_DEBUG_HEADER,"time_pp=%i\n", dec->time_pp); |
825 |
DPRINTF(XVID_DEBUG_HEADER,"time_bp=%i\n", dec->time_bp); |
DPRINTF(XVID_DEBUG_HEADER,"time_bp=%i\n", dec->time_bp); |
826 |
|
|
1024 |
version, build, dec->packed_mode); |
version, build, dec->packed_mode); |
1025 |
} |
} |
1026 |
|
|
1027 |
|
if ((dec->bs_version == 0) && (build > 0) && |
1028 |
|
(build != 1393)) { /* non-xvid stream with xvid fourcc */ |
1029 |
|
dec->bs_version = 0xffff; |
1030 |
|
} |
1031 |
|
|
1032 |
} else /* start_code == ? */ |
} else /* start_code == ? */ |
1033 |
{ |
{ |
1034 |
if (BitstreamShowBits(bs, 24) == 0x000001) { |
if (BitstreamShowBits(bs, 24) == 0x000001) { |