[svn] / trunk / xvidcore / src / bitstream / bitstream.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/src/bitstream/bitstream.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1772, Mon Apr 16 19:01:28 2007 UTC revision 1891, Tue Aug 10 15:00:34 2010 UTC
# Line 20  Line 20 
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    
# Line 820  Line 820 
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    
# Line 1023  Line 1024 
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) {

Legend:
Removed from v.1772  
changed lines
  Added in v.1891

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4