mpeg 2 - Generate PCR from PTS

I am trying to create PCR from PTS as follows. S64 nPcr = nPts * 9 / 100; pTsBuf[4] = 7 + nStuffyingBytes; pTsBuf[5] = 0x10; /* flags */ pTsBuf[6] = ( nPcr >> 25 )&0xff; pTsBuf[7] = ( nPcr >> 17 )&0xff; pTsBuf[8] = ( nPcr >> 9 )&0xff; pTsBuf[9] = ( nPcr >> 1 )&0xff; pTsBuf[10]= ( nPcr << 7 )&0x80; pTsBuf[11]= 0; But the problem is VLC is playing only first frame and not playing any other frames.and I am getting t...Read more